note 41486 rejected from function.array-fill by betz

From: Date: Mon, 12 Apr 2004 09:54:04 +0000
Subject: note 41486 rejected from function.array-fill by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68010@lists.php.net to get a copy of this message
Note Submitter: phurpawangchuk@hotmail.com ---- Here is my problem with example. $ar = array(2,4,6,8); I donot want the above one(which is hardcoded value for array), so my problem is to assign different value to the above array as in C/C++ done below: for(i=0; i<4;i++) ar[i]=2*(i+1); How will we assign value to the above array in PHP. Waiting for ur response.

« previous php.notes (#68010) next »