Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 509 Bytes

0742.md

File metadata and controls

23 lines (20 loc) · 509 Bytes

What is the output of the following code?

$str = 'abcdef';
if (strpos($str, 'a')) {
	echo "Found the letter 'a'";
} else {
	echo "Could not find the letter 'a'";
}
  • A) Could not find the letter 'a'
  • B) Found the letter 'a'
  • C) "Could not find the letter 'a'"
  • D) "Found the letter 'a'"
Answer

Answer: A