|
Posted by Michael Fesser on 01/25/07 17:10
..oO(Nick Wedd)
>I have a string, $cookiestring, which typically looks like this:
>"us=1!uk=2!de=13!fr=8!". I want to use this to get values into an array
>$r, so that $r['us']=1, $r['uk']=2, etc.
Another one:
parse_str(strtr($cookiestring, array('!' => '&')), $r);
Micha
Navigation:
[Reply to this message]
|