php question and answer 5 years experience code example
Example 1: php interview questions for 2 year experience
<?php
if(empty($_POST['email'])){
echo "The email cannot be empty";
}
$email = $_Post [‘email’]?? "The email cannot be empty";
?>
Example 2: php interview questions and answers for 2 years experience
$a = '1';
$b = &$a;
$b = "2$b";
echo $a.", ".$b;