Array explicit keys verification

From: Date: Fri, 26 Oct 2001 19:48:47 +0000
Subject: Array explicit keys verification
Groups: php.general 
Request: Send a blank email to php-general+get-72491@lists.php.net to get a copy of this message
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 :)

« previous php.general (#72491) next »