mardi 22 mars 2016

How to use if condition properly in php? [on hold]

Which if condition is legal and appropriate ?

first if condition:

if($abc == $xyz){ 
     echo "something";
}

second if condition:

if($abc == $_POST['xyz']){ 
     echo "something";
}

third if condition:

if($abc == $_SESSION['xyz']){ 
     echo "something";
}

Aucun commentaire:

Enregistrer un commentaire