note 73431 added to function.array-fill

From: Date: Fri, 23 Feb 2007 00:06:31 +0000
Subject: note 73431 added to function.array-fill
Groups: php.notes 
Request: Send a blank email to php-notes+get-123727@lists.php.net to get a copy of this message
Any idea how to fill array with random values (without using for(;;), just one function)? <?php array_fill(1, 20, rand()); ?> Above gives array with 20 identical integers. ---- Server IP: 195.136.184.34 Probable Submitter: 80.53.26.125 ---- Manual Page -- http://www.php.net/manual/en/function.array-fill.php Edit -- https://master.php.net/note/edit/73431 Del: integrated -- https://master.php.net/note/delete/73431/integrated Del: useless -- https://master.php.net/note/delete/73431/useless Del: bad code -- https://master.php.net/note/delete/73431/bad+code Del: spam -- https://master.php.net/note/delete/73431/spam Del: non-english -- https://master.php.net/note/delete/73431/non-english Del: in docs -- https://master.php.net/note/delete/73431/in+docs Del: other reasons-- https://master.php.net/note/delete/73431 Reject -- https://master.php.net/note/reject/73431 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123727) next »