• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP Functions

PHP Functions
What will be the output of the following PHP code ?
function calc($num1, $num2)
{
$total = $num1 * $num2;
}
$result = calc(42, 0);
echo $result;

42
84
Error
0

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
echo hex2bin("48656c6c6f20576f726c6421");

welcome to india
Hello World!
MCQ questons
This is PHP!

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
. . . . returns a new DateTime object.

date()
date_create()
getdate()
date_sunrise()

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
Which of the following are valid function names?
1. function()
2. €()
3. .function()
4. $function()

3 and 4
Only 2
None of the mentioned
All of the mentioned

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function mine($m)
{if ($m < 0)
echo "less than 0";
if ($ >= 0)
echo "Not True";
}
mine(0);

Not True
None of the Mentioned
Less Than 0
No Output

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
It is always necessary to use parentheses with the print function.

True
False

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON PHP Functions

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑