[thelist] PHP Array loop help
Les Lytollis
les.lytollis at morse.com
Fri May 10 06:49:01 CDT 2002
> I can loop through the cookie and get
> each segment,
> but when I open the text file and loop through it, it only matches the
> first segment.
Well it's been a while since I did any PHP, but I think...
>
> //foreach ($cookieInfo as $a){
> while(list($key, $value) = each($cookieInfo)){
> if($v == $cookieInfo[0]){
> print "Link Info: $cookieInfo[1]\n<br>";
> }
should be...
//foreach ($cookieInfo as $a){
> while(list($key, $value) = each($cookieInfo)){
> if($v == $key){
> print "Link Info: $value\n<br>";
> }
More information about the thelist
mailing list