small test trying to dev filters
authorPaul J R <me@pjr.cc>
Wed, 19 Sep 2012 23:39:01 +0000 (09:39 +1000)
committerPaul J R <me@pjr.cc>
Wed, 19 Sep 2012 23:39:01 +0000 (09:39 +1000)
unittests/filter.php [new file with mode: 0644]

diff --git a/unittests/filter.php b/unittests/filter.php
new file mode 100644 (file)
index 0000000..334fbb2
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+$input = "i'm a looking at the rail:road, if you get me";
+
+$inp = preg_replace("/[^a-zA-Z0-9 ]+/", "", $input);
+
+echo "inp is $inp\n";
+
+$res = explode(" ", $inp);
+
+echo "res is ".print_r($res, true);
+?>
\ No newline at end of file