getting array key with implode

From: Date: Thu, 15 May 2003 19:46:47 +0000
Subject: getting array key with implode
Groups: php.general 
Request: Send a blank email to php-general+get-147777@lists.php.net to get a copy of this message
How can I get an array key using implode rather then it's value? or perhaps I'm just going about this wrong. while(list($k, $v) = each($_POST)) { $data[$k] = $v; } $required = implode(" || ", $data); if(!$required) { echo "Your missing a field, all field are required for proper calculation"; } Thing is I need $data[] 's key not value to make this work.

« previous php.general (#147777) next »