Hi, i'm trying to find elegant way to find if Array was declared with
explicit keys or only as values.

Like, I would like to make a function that knows if array argument was given
with keys or only values,
function that can distinguish between:

func(array("value1","value2","value3"))

and

func(array("a"=>"value1","b"=>"value2","c"=>"value3"))  or
func(array(1=>"value1",2=>"value2",3=>"value3"))

Thank you :)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to