Re: Array !!!
| From: | hugh danaher | Date: | Thu, 07 Feb 2002 01:47:39 +0000 |
| Subject: | Re: Array !!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83793@lists.php.net to get a copy of this message | ||
if you created a "number" array then just input number between the brackets:
echo $array_name['some_number_goes_here'];
if you want all array values to print:
for ($i=0;$i<=count($array_name);$i++) {
echo $array_name[$i];
}
if it's an associate array then input the name of the array element:
echo $array_name['some_word_goes_here'];
----- Original Message -----
From: "Pavel Zvertsov" <pavelzver@hotmail.com>
To: <php-general@lists.php.net>
Sent: Wednesday, February 06, 2002 12:23 PM
Subject: [PHP] Array !!!
> Help!!
>
> How to move an array's internal pointer to the required element not the
> first one or last one???
>
> Thanks!!!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>