What will be the result of the following code ? $a = 0 or 1; $b = 0 || 1; echo "$a, $b";
Correct Answer: 0, 1
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP MCQ Questions
The number of parameters in setCookie function
What does php_strip_whitespace function return?
Which functions compute the intersection of arrays with additional index check and are defined newly in PHP5?
What Does OOM mean?
What function allows you to find the position of the first occurrence of a substring?
What's the output? function counter($a){ $result = ++$a++; return $result; } echo counter(5);
What function checks a supplied password against a password hashed using password_hash?
Function to hash a password for storage?
What does this display: Class Obj{ public $a = 2; public function __construct($var=null){ if(!empty($var)) $this->a = $var } } $obj = new Obj(0); echo $obj->a;
$var = 'green' $str = 'The apple is $var \n' echo $str; What will be displayed ?