?
What will be the output of the following PHP code?
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.");
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login