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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to