ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

What will be the output of the following PHP code?
<?php
function do($myString)
{
    echo strpos($myString, "donkey",0);
}
do("The donkey looks like a horse.");
?>

Answer & Solution
Correct Answer: Option A
Donkey starts from position 4 in string.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.