Re: Just like to know

From: Date: Wed, 18 Jul 2001 14:07:30 +0000
Subject: Re: Just like to know
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58436@lists.php.net to get a copy of this message
Jeroen, I guess it depends on your coding style and preference. Functionally, they do the same thing. First line is easier to read while the second line requires more typing. One note. This will not work (using an associative array): <?php $somevar = array("foo"=>"bar"); $string1 = "bla bla $somevar[1] bla bla bla $somevar["foo"]$somevar[1] bla"; ?> -Jeremy Maziarz Email: jer2475@home.com

« previous php.general (#58436) next »