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
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
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
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
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
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
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
7 matches
Mail list logo