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: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to