Notice that the fourth parameter of array_slice will only work in PHP 5, and
not for string keys.
There's no associative array slicing function that I know of (it would be a
good idea for PHP to incorporate one), so I use the following two, which
work for numeric or string keys, and work for PHP 4
oops me bad.. I just needed the last (4th) parameter added.
cheers,
Jeffery
On Wed, 28 Nov 2007 04:59:35 pm Jeffery Fernandez wrote:
> Hi all,
>
> I am wanting to retain the array indexes after it being sliced. Here is
> what I have so far.
>
> if ($user_count > $group_count)
> {
> for ($i
2 matches
Mail list logo