note 11507 deleted from language.variables by irc-html

From: Date: Sat, 19 Jan 2002 18:47:25 +0000
Subject: note 11507 deleted from language.variables by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25178@lists.php.net to get a copy of this message
Quick tutorial on associative arrays for other dunces like me: To generate such an array, try this: $var = array( "key1" => "value1", "key2" => "value2" ); You can also add individual pairs to an array like so: $var["key3"] = "value3"; How do you use 'em once they are there? A. you can call them individually by useing $var[key], or B. you can use them in loops such as: foreach ($var as $key => $value) { echo "Entry $key = $value<br>"; }

« previous php.notes (#25178) next »