Php tidak menggemakan variabel saat print_r
$x = $_POST['minAcres'];
SAMER SAEID
$x = $_POST['minAcres'];
<?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'];
Array
(
[selectCountries] => Array
(
[0] => Columbia
)
[startDate] => 2001-01-01
[minAcres] => 0
)
0
<?php
$_POST = array(
'selectCountries' => array('Columbia'),
'startDate' => '2001-01-01',
'minAcres' => 0
);
print_r($_POST);
$x = $_POST['minAcres'];
echo $x;
?>