Re: Cannot index a string index - Why?

From: Date: Mon, 27 Aug 2001 11:28:35 +0000
Subject: Re: Cannot index a string index - Why?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64615@lists.php.net to get a copy of this message
> > if ($var){ > > $tmp = explode("<|>",$vars); > > for ($i = 0; $i < sizeof($tmp); $i++){ > > $struct[$i] = array(); > > You really don't need this line... > > > $tmp2 = explode("<||>",$tmp[$i]); > > for ($j = 0; $j < sizeof($tmp2);$j++){ > > Try assigning $tmp3 = $tmp2[$j] and using $tmp3 below. > > Also, var_dumb($tmp3) and see what it is. It's a string, as it schould be. > > > $struct[$i][$j] = explode("<|||>",$tmp2[$j]); > > } > > } > > } > The error is still there.

« previous php.general (#64615) next »