hi,
the function array is for making a new array. Observe this code and you will
get the point
(assuming that you won't to loop for five times)
$myarr= array()
for ($i=0;$i<=5;$i++)
{
$myarr[$i]=$i;
}
//you can then get the values of the array
echo $myarr[0];
echo $myarr[1]; //and like that
note that this loop simply assigns a number to every array index, this is
not so useful, but you would probably do something with $i to store a
particular value.
khalid
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- RE: [PHP] arrays Jerry Verhoef (UGBI)
- [PHP] Arrays Mehmet Kamil ERISEN
- [PHP] arrays Michael Hall
- [PHP] Re: arrays Michael Virnstein
- Re: [PHP] arrays Philip Olson
- [PHP] Arrays Dan
- [PHP] Re: Arrays Dan
- RE: [PHP] Re: Arrays John Holmes
- RE: [PHP] Arrays Lazor, Ed
- RE: [PHP] Arrays Lazor, Ed
- [PHP] Arrays Khalid El-Kary
- [PHP] Arrays John Taylor-Johnston
- RE: [PHP] Arrays John W. Holmes
- Re: [PHP] Arrays John Taylor-Johnston
- [PHP] Arrays Ben
- RE: [PHP] Arrays Ben Miller
- Re: [PHP] Arrays James E Hicks III
- Re: [PHP] Arrays Greg Donald
- RE: [PHP] Arrays Zareef Ahmed
- Re: [PHP] Arrays Klaus Reimer
- Re: [PHP] Arrays Ligaya Turmelle