Number 3


#1


I have no idea what I did wrong. Any ideas?


#2



<?php
// Print out the position of a letter that is in
// your own name
$myname = "Private";
$i = "i";
echo strpos($myname, $i);

?>
</p>
<p>
<?php
// Check for a false value of a letter that is not
// in your own name and print out an error message
if(strpos($myname, "x") == false) {
    echo "Private has no such letter in it!";
}
?>
</p>

Mine worked, it might be that you have three "=" in your IF statement, hope it works, GL.


#3

Declare line 6 as a variable.
For example:
$name = strpos("example", "x");
print $name;