Because it's parsing $WRW as a string, because of the double quotes. so you would need to do it like this:

quotemeta('pat:1$WRW')
to not let it parse any variables

or

quotemeta("pat:1\$WRW")

to not parse that particular variable

Steve Kaufman wrote:

Why does
         quotemeta("pat:1$WRW")
return
         pat:1
instead of
         pat:1\$WRW

What am I misunderstanding about quotemeta function?




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to