Re: [PHP] quotemeta() question...

2005-02-14 Thread Richard Lynch
Jason Barnett wrote: > Richard Lynch wrote: >> Steve Kaufman wrote: >> >>>Why does >>> quotemeta("pat:1$WRW") >>>return >>> pat:1 >>>instead of >>> pat:1\$WRW >>> >>>What am I misunderstanding about quotemeta function? >> >> >> You usually would use quotemeta on data comi

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: ... A better example code would be: $string = 'period.backslash\\plus+star*question?lbracket[rbracket]carat^lparen(rparen)dollar$'; echo "", quotemeta($string), ""; Interesting aside... with the test string above, I noticed that backslash\\ only resolved to

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Jochem Maas wrote: ... A better example code would be: $string = 'period.backslash\\plus+star*question?lbracket[rbracket]carat^lparen(rparen)dollar$'; echo "", quotemeta($string), ""; Interesting aside... with the test string above, I noticed that backslash\\ only resolved to two backslashes. I th

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jochem Maas
Jason Barnett wrote: Richard Lynch wrote: Steve Kaufman wrote: Why does quotemeta("pat:1$WRW") return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? You usually would use quotemeta on data coming from the database, or the user, or extern

Re: [PHP] quotemeta() question...

2005-02-11 Thread Jason Barnett
Richard Lynch wrote: Steve Kaufman wrote: Why does quotemeta("pat:1$WRW") return pat:1 instead of pat:1\$WRW What am I misunderstanding about quotemeta function? You usually would use quotemeta on data coming from the database, or the user, or externally, or, errr, basic

Re: [PHP] quotemeta() question...

2005-02-11 Thread Richard Lynch
Steve Kaufman wrote: > Why does > quotemeta("pat:1$WRW") > return > pat:1 > instead of > pat:1\$WRW > > What am I misunderstanding about quotemeta function? You usually would use quotemeta on data coming from the database, or the user, or externally, or, errr, basical

Re: [PHP] quotemeta() question...

2005-02-10 Thread Chris
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

[PHP] quotemeta() question...

2005-02-10 Thread Steve Kaufman
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

[PHP] quotemeta() question...

2005-02-10 Thread Steve Kaufman
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