|
Posted by Pedro Graca on 10/15/06 03:17
Daz wrote:
>
> Chung Leong wrote:
>> Hermann.Richter@gmail.com wrote:
>> > <?
>> > end($array) ;
>> > current($array)="new value" ;
>> > ?>
>> >
>> > is that posible??
>>
>> end($array);
>> $array[key($array)] = "new value";
>
> $array[(sizeof($array)-1)] ="new value";
> should also work.
<?php
$tmp = array('forty-two'=>42, 'twenty-four'=>24);
echo $array[sizeof($array)-1];
?>
--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
Navigation:
[Reply to this message]
|