note 110447 added to function.array-fill

From: Date: Tue, 23 Oct 2012 11:04:47 +0000
Subject: note 110447 added to function.array-fill
Groups: php.notes 
Request: Send a blank email to php-notes+get-191494@lists.php.net to get a copy of this message
Contrary to fat-lip below - the example given in the docs is correct regarding negative starting indices, it only affects the first key: <?php $b = array_fill(-2, 4, 'pear'); print_r($b); /* Will output: Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) */ ---- Server IP: 94.76.225.145 Probable Submitter: 109.231.193.170 ---- Manual Page -- http://www.php.net/manual/en/function.array-fill.php Edit -- https://master.php.net/note/edit/110447 Del: integrated -- https://master.php.net/note/delete/110447/integrated Del: useless -- https://master.php.net/note/delete/110447/useless Del: bad code -- https://master.php.net/note/delete/110447/bad+code Del: spam -- https://master.php.net/note/delete/110447/spam Del: non-english -- https://master.php.net/note/delete/110447/non-english Del: in docs -- https://master.php.net/note/delete/110447/in+docs Del: other reasons-- https://master.php.net/note/delete/110447 Reject -- https://master.php.net/note/reject/110447 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191494) next »