note 20898 added to function.array

From: Date: Sat, 20 Apr 2002 20:21:59 +0000
Subject: note 20898 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-29620@lists.php.net to get a copy of this message
If you want to create an array of a set size and you have PHP4, use array_pad(array(), $SIZE, $INITIAL_VALUE); This can be handy if you wish to initialize a bunch of variables at once: list($Var1, $Var2, etc) = array_pad(array(), $NUMBER_OF_VARS, $INITIAL_VALUE); Jay Walker Las Vegas Hotel Associate http://www.ezlasvegas.net -- http://www.php.net/manual/en/function.array.php http://master.php.net/manage/user-notes.php?action=edit+20898 http://master.php.net/manage/user-notes.php?action=delete+20898 http://master.php.net/manage/user-notes.php?action=reject+20898

« previous php.notes (#29620) next »