note 119735 deleted from function.array-keys by cmb

From: Date: Mon, 15 Aug 2016 09:46:49 +0000
Subject: note 119735 deleted from function.array-keys by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206288@lists.php.net to get a copy of this message
Note Submitter: omisakin dot oluwatobi at gmail dot com ---- To pick every keys in a $_POST, set the post to a variable then use it as an Indexed arrays. For example, <?php //Assuming the post value is has 3 fields name, age, address $postvalue = array_keys($_POST); echo $postvalue[0]; print "\n"; echo $postvalue[1]; print "\n"; echo $postvalue[2]; ?> The result will be name age address PS: Trying to access array_keys($_POST[0]) doesn't work in this case.

« previous php.notes (#206288) next »