View Single Post
  #3 (permalink)  
Old 03-02-2010, 09:51 AM
David Bolt
Guest
 
Posts: n/a
Default Re: take out the last entry in array

On Tuesday 02 Mar 2010 10:39, while playing with a tin of spray paint,
gina painted this mural:

> Hello.
>
> I need to keep everything but cut off the last entry of an array ...
>
> how can I achive this, please ?


$array=array_slice($array,0,-1);


Regards,
David Bolt

--
Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
openSUSE 11.0 32b | | | openSUSE 11.3M1 32b
openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2 64b |
TOS 4.02 | openSUSE 11.1 PPC | RISC OS 4.02 | RISC OS 3.11

Reply With Quote