Re: split array in 2 halfs
| From: | Jack Dempsey | Date: | Wed, 31 Oct 2001 21:24:04 +0000 |
| Subject: | Re: split array in 2 halfs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73072@lists.php.net to get a copy of this message | ||
Based on what criteria? if you just want to split the array at element 30,
you could use array_splice to get the necessary data...
----- Original Message -----
From: "Daniel Harik" <gatop@hot.ee>
To: <php-general@lists.php.net>
Sent: Thursday, November 01, 2001 2:16 AM
Subject: [PHP] split array in 2 halfs
> Good evening
>
> I was wondering how can I split, array that has 60 elements in it,
> into 2 arrays with 30 elements each?
>
>
> Thank You very much and have a good night :-)
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>