![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: filter_var() - using callback ! 3: --SKIPIF-- ! 4: <?php if (!extension_loaded("filter")) die("skip"); ?> ! 5: --FILE-- ! 6: <?php ! 7: ! 8: function filter_test($str) { return FALSE; } ! 9: filter_var('durty/boy', FILTER_CALLBACK, array( ! 10: 'options' => 'filter_test', ! 11: )); ! 12: ! 13: print "Done\n"; ! 14: ! 15: ?> ! 16: --EXPECTF-- ! 17: Done