note 37357 added to function.array-push

From: Date: Wed, 12 Nov 2003 00:18:49 +0000
Subject: note 37357 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-60270@lists.php.net to get a copy of this message
You can merge key and value combinations into "variable variable" arrays using {} around the variable name. Here's an example: $arrayName = time(); ${$arrayName}["mykey"] = "myvalue"; print $arrayName.":<br>" print_r($$arrayName); print "<br><br>"; ---- Manual Page -- http://www.php.net/manual/en/function.array-push.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37357 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37357&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37357&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60270) next »