A
Q. What will be the output of the following PHP code?
Code:<?php $url = "ruchi@sharma.com"; echo ltrim(strstr($url, "@"),"@"); ?>
Here, you will find a collection of MCQ questions on PHP. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
<?php $url = "ruchi@sharma.com"; echo ltrim(strstr($url, "@"),"@"); ?>
A
A
A
<?php $Message = "this is important message..."; echo ucwords($Message); ?>
A
<?php
echo str_pad("Salad", 10)." is good.";
?>
A
A
A
$cars = array("Datsun", "Jeep", "Lada", "Spyker");
$car = preg_grep("/^L/", $cars);
print_r($car);
?>
A
A
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ