Interviewer And Interviewee Guide

Jnr PHP/Codeigniter Developer Interview Question:

Explain me how would you declare a function that receives one parameter name hello?

Submitted by: Muhammad
If hello is true, then the function must print hello, but if the function doesn’t receive hello or hello is false the function must print bye.

<?php
function showMessage($hello=false){
echo ($hello)?'hello':'bye';
}
?>
Submitted by: Muhammad

Read Online Jnr PHP/Codeigniter Developer Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG