note 17321 deleted from function.array by irc-html

From: Date: Sat, 19 Jan 2002 20:56:31 +0000
Subject: note 17321 deleted from function.array by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25442@lists.php.net to get a copy of this message
I use this method to fill an array composed by many array with a cycle such as while, for... $i = 0; $main_arr = array (); while ($i < 3) { $main_arr["sub_arr_$i"] = array ("date"=>"2001-02", "option1"=>"value 1", "option2"=>"value 2"); $i++; } print_r($main_arr); it produce the following result: Array ( [sub_arr_0] => Array ( [date] => 2001-02 [option1] => value 1 [option2] => value 2 ) [sub_arr_1] => Array ( [date] => 2001-02 [option1] => value 1 [option2] => value 2 ) [sub_arr_2] => Array ( [date] => 2001-02 [option1] => value 1 [option2] => value 2 ) )

« previous php.notes (#25442) next »