linkedin-skill-assessments-quizzes
linkedin-skill-assessments-quizzes copied to clipboard
[PHP] New question with answer
- [x] New question
Question. What is the output of this script?
$believable = 'false';
$myth = 'The moon is made of green cheese';
$calc = 10**3+1;
if ($believable) {
echo $myth;
}
else {
echo $calc;
}
- [ ] 10000
- [ ] 31
- [ ] 1001
- [x] The moon is made of green cheese
Explanation : 'false' evaluates to true since it is a string so the if condition is met.
solved #6948
Is this issue still open?