note 41486 added to function.array-fill
| From: | phurpawangchuk at hotmail dot com | Date: | Mon, 12 Apr 2004 08:09:14 +0000 |
| Subject: | note 41486 added to function.array-fill | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68008@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.array-fill.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41486
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41486&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41486&report=yes
Search -- http://master.php.net/manage/user-notes.php