note 109278 deleted from function.array-fill by tularis

From: Date: Mon, 02 Jul 2012 09:47:51 +0000
Subject: note 109278 deleted from function.array-fill by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188999@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- when i am using the array_fill with - integer it Giving be below array $b = array_fill(-2, 4, 'pear'); Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) But it should be Array ( [-2] => pear [-1] => pear [0] => pear [1] => pear ) am i right or there is some logic behind this. please explain me

« previous php.notes (#188999) next »