Talk:PHP Programming/Arrays

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)

Array Examples
Somebody changed examples from Toyota to Toyota. THIS IS INVALID WE ARE NOT EVALUATING HTML HERE!!! PHP IS JUST A SCRIPT INTERPRETER, OUTPUTTING DATA. IT DOESN'T OUTPUT BOLD TEXT, DOES IT? Wykis 18:13, 22 March 2006 (UTC)

the BOLD tag element does exist in XHTML. w3

Added the missing &lt;/b&gt; closing tags for model, color, and year. 71.110.195.21 19:26, 1 May 2006 (UTC) Randall - whizman.com - 2006/05/01

Example 3
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 emu 15:41, 7 September 2006 (UTC)

Example #3 HTML rendering
The third example

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: Celica Colour: black Year Manufactured: 1991

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,

it works in these browsers properly. The same is true for the multidimensional array example.--Sae1962 (discuss • contribs) 13:44, 21 January 2015 (UTC)