> -----Original Message-----
> From: Marcus Boerger [mailto:[EMAIL PROTECTED] 
> Sent: 27 May 2006 22:28
> To: internals@lists.php.net
> Subject: [PHP-DEV] RFC array functions
> 
> Hello internals,
> 
>   i'd like to add two array functions:
> 
> - bool array_has_more(array $array)
> 
>   checks whether $array has more elements after current position or
>   if array is at last position, preferable working inside foreach

Useful.
 
> - bool array(array $array)
> 
>   cehcks whether arra position is valid (e.g. like 
> "key($array) !== NULL")

How do you disambiguate between this and

$array = array('foo', 'bar');
$anotherArray = array($array);

making array(0 => array(0 => 'foo', 1 => 'bar'))

Jared

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to