Re: Echo a value from an arrays position
| From: | Jonas Rosling | Date: | Thu, 04 May 2006 12:36:32 +0000 |
| Subject: | Re: Echo a value from an arrays position | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235488@lists.php.net to get a copy of this message | ||
Seem like your missunderstanding me. I'm not using an orignal array. I'm
using an "map-array".
$array = ('element' = 'value');
// Jonas
Den 06-05-04 14.29, skrev "Jay Blanchard" <jblanchard@pocket.com>:
> [snip]
> Is there any way to call for an element value in an array by the
> position?
> Like position 2 in the array and not the key name.
> [/snip]
>
> I hate to say this, but you really need to RTFM
> http://www.php.net/array
>
> To get a value from position 2 in an array you use $arrayName[1] (all
> array elements start numbering at 0, unless you do something to the
> array to change it).
>