Re: data from service into array

From: Date: Thu, 07 Mar 2002 00:11:17 +0000
Subject: Re: data from service into array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-87550@lists.php.net to get a copy of this message
On Wed, Mar 06, 2002 at 06:02:15PM -0600, Craig Westerman wrote: > Would you explain what this line does? > > $out[$m[1]] = $m[2]; it assigns an entry to the output array. $m is populated by preg_match (where it was passed as the third argument) with the entire match in $m[0], the first parenthesized expression in $m[1] (which is the element name), and the second parenthesized expression in $m[2] (which is the value). jim

« previous php.general (#87550) next »