You haven't explained what
while (list($key, $val) = each($accessories)) {does yet. Try to use only code that you've already shown. People who are just learning (like myself) need to be able to follow it, appending one thing at a time to their knowledge. -Omegatron 20:59, 24 Jun 2005 (UTC)
Somebody changed examples from <b>Toyota</b> to '''Toyota''' .THIS IS INVALIDWE ARE NOT EVALUATING HTML HERE!!!PHP IS JUST A SCRIPT INTERPRETER, OUTPUTTING DATA. IT DOESN'T OUTPUT BOLD TEXT, DOES IT?Wykis18:13, 22 March 2006 (UTC)
the BOLD tag elementdoes exist in XHTML.w3
Added the missing </b> closing tags for model, color, and year.71.110.195.2119:26, 1 May 2006 (UTC) Randall - whizman.com - 2006/05/01
I think that it wasn't explained in any page so far the curly braces in double-quoted strings notation for using variables... It's very confusing if you don't know it yet. They should be either replaced for . concatenating, or an explanation of how they work should be added below the example. -Roma emu15:41, 7 September 2006 (UTC)
The third example
<?phpecho"Manufacturer:{$array['name']}\n";echo"Brand: <b>{$array2['1']}</b><br />\n";echo"Colour: <b>".$array3['colour']."</b><br />\n";echo"Year Manufactured: <b>".$array3[1]."</b><br />\n"?>
is output in both Google Chrome 39.0.2171.99 m (64-bit) & Microsoft Internet Explorer 11.0.9600.17498 (64-bit) as
Manufacturer: Toyota Brand: <b>Celica</b><br /> Colour: <b>black</b><br /> Year Manufactured: <b>1991</b><br />
In other words, the commands between the ampercent and the semicolon is not executed, like it is the case for the carriage return. If these commands are converted to text,
<?phpecho"Manufacturer:{$array['name']} <br />";echo"Brand: <b>{$array2['1']}</b><br />";echo"Colour: <b>".$array3['colour']."</b><br />";echo"Year Manufactured: <b>".$array3[1]."</b><br />"?>
it works in these browsers properly. The same is true for the multidimensional array example.--Sae1962 (discuss •contribs)13:44, 21 January 2015 (UTC)