Number 3


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


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

// 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!";

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


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