note 4136 deleted from function.array-push by jimw
| From: | jimw@php.net | Date: | Fri, 21 Dec 2001 00:42:37 +0000 |
| Subject: | note 4136 deleted from function.array-push by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23678@lists.php.net to get a copy of this message | ||
If you want to add a element to a linear table (one dimensional) the traditional method is best.
$array_name[]=$variable_name
On the other hand if you want to insert a
($key,$val)
into an array the easy way is
$array_name[$key]=$val
Thats all.