--TEST-- Test preg_quote() function : basic functionality --FILE-- --EXPECT-- $string_before looks like: /this *-has \ metacharacters^ in $ $string_after looks like: \/this \*\-has \\ metacharacters\^ in \$, with metacharacters and / (set as delimiter) escaped int(1) array(1) { [0]=> string(58) "testing - /this *-has \ metacharacters^ in $ should work" }