This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Functions, Part I Forum

View Course » View Exercise

840 points
55b0950c93767608fc000057_681063372
Submitted by
AVIWE
over 2 years ago

Oops, try again. Your first strpos() call should output a number.

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


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


0 votes

permalink

never mind guys,I have got where my mistake was

840 points
55b0950c93767608fc000057_681063372
Submitted by
AVIWE
over 2 years ago

2 Comments

5460de6752f8630b220001a6_994398512 albycolo over 2 years ago

where is the mistake man?
please

Picture Navneeth Dubey over 2 years ago

u hv to print on nxt line