maybe implode?
$u=preg_replace("/[^$chars]/e","%".implode('',unpack("H2", "$0")), $u);
adrian porter wrote:
I want to do the following:
$u=preg_replace("/[^$chars]/e",'"%".unpack("H2", "$0")', $u);
However, as you know, unpack returns an array. I tried this instead:
$u=preg_replace("/[^$chars]
> I want to do the following:
>
> $u=preg_replace("/[^$chars]/e",'"%".unpack("H2", "$0")', $u);
>
> However, as you know, unpack returns an array. I tried this instead:
>
> $u=preg_replace("/[^$chars]/e",'"%".(unpack("H2", "$0")[""])', $u);
>
> but that isn't syntactically correct. I know that th
2 matches
Mail list logo