PHP Multiple Choice Interview Questions and Answers on Functions
Questions
1
What is the output of the following function ?
<? php
function gkseries $subject = "PHP")
{
return "Learn programming in $subject ";
}
gkseries $subject;
echo "with gkseries.com"
?>
Answer: Option [B]
⭐ Make GKSeries Your Preferred Source on Google
Add GKSeries as Preferred Source
3
What is the output of the given function ?
<? php
function invite (&$students)
{
$students = 'Learn Computer Engineering';
}
$vst = 'Visit gkseries.com and';
invite($vst);
echo $vst;
?>
Answer: Option [C]