Whats wrong with my code? Everything?


#1

l>


<?php
// Print out the position of a letter that is in
// your own name
$myname = "hema";
strpos("hema","e");
print "your name";
?>



<?php
// Check for a false value of a letter that is not
// in your own name and print out an error message
if (strpos("Hema","r")===false
print "sorry no 'r' in 'hema'";
}
?>




Replace this line with your code.


#2

if (strpos("Hema","r")===false // here need a closing ) bracket and opening { bracket
print "sorry no 'r' in 'hema'";
}


#3

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