$keys = [];
foreach ($_REQUEST as $key=>$param) {
if (!empty($param)) {
array_push($keys, $key);
}
}
print_r($keys);
aynısını birinci örneğe de uygulayablirsiniz.
$_GET['isim']; ?> bizzat kendisini alma |
23 Mesajlar | 2.305 Okunma |
$keys = [];
foreach ($_REQUEST as $key=>$param) {
if (!empty($param)) {
array_push($keys, $key);
}
}
print_r($keys);
extract($_GET);
echo $isim;
$keys = [];
foreach ($_REQUEST as $key=>$param) {
if (!empty($param)) {
array_push($keys, $key);
}
}
print_r($keys);
extract($_GET);
echo $isim;
foreach ($_REQUEST as $key=>$param) {
if (!empty($param)) {
echo $key;
}
}
?>
$keys = [];
foreach ($_REQUEST as $key=>$param) {
if (!empty($param) && $key != "tarih" && $key != "telefon") {
array_push($keys, $key);
}
}
print_r($keys);