note 122286 deleted from reserved.variables.post by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 11:00:55 +0000 |
| Subject: | note 122286 deleted from reserved.variables.post by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210855@lists.php.net to get a copy of this message | ||
Note Submitter: rajaimranqamer at gmail dot com
----
If you want to get all elements in $_POST where name like some substring then this example may help
you.
foreach($_POST as $key => $value) {
if (strpos($key, 'substring_')>=0) {
// value starts with substring_
}
}