Get stuck and the syntax looks ok


#1


https://www.codecademy.com/courses/web-beginner-en-7I7Xm/0/3?curriculum_id=5124ef4c78d510dd89003eb8#




<?php
// Print out the position of a letter that is in
// your own name
strpos("Mike", "k");
?>



<?php
// Check for a false value of a letter that is not
// in your own name and print out an error message
if (strpos("Catwoman","Batman") == false) {
print "Error, no 'Batman' was found in 'Catwoman'";
}
?>




#2

I just solved it. I forgot to put print.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.