<?php
$_POST = array(
'selectCountries' => array('Columbia'),
'startDate' => '2001-01-01',
'minAcres' => 0
);
print_r($_POST);
$x = $_POST['minAcres'];
echo $x;
?>
//Output
Array
(
[selectCountries] => Array
(
[0] => Columbia
)
[startDate] => 2001-01-01
[minAcres] => 0
)
0
//syntax error
$x = $_POST['minAcres'];
<?php
$_POST = array(
'selectCountries' => array('Columbia'),
'startDate' => '2001-01-01',
'minAcres' => 0
);
print_r($_POST);
$x = $_POST['minAcres'];
echo $x;
?>
Array
(
[selectCountries] => Array
(
[0] => Columbia
)
[startDate] => 2001-01-01
[minAcres] => 0
)
0
$x = $_POST['minAcres'];