I have several $_POST variables, they are
$_POST[\'item_number1\'] $_POST[\'item_number2\']
and so on
I need to write a loop tha di
try:
foreach($_POST as $k => $v) { if(strpos($k, 'item_number') === 0) { echo "$k = $v"; } }
In the above example, $k will be the array key and $v would be the value.