Examveda
Examveda

What will be the output of the following PHP code ?
<?php
function string()
{
    echo strstr("Hello world!", 111);
}
string();
?>

A. o world!

B. Hello world!

C. 111

D. No Output

Answer: Option A

Solution(By Examveda Team)

111 is the ASCII value of o.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions