small test trying to dev filters
[gwvp-mini.git] / unittests / filter.php
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