• 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?
$str = addslashes('What does "yolo" mean?');
echo($str);

What does ”yolo” mean?
What does ”yolo” mean?
What does /”yolo/” mean?
What does ”yolo” mean?

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function sayHello() {
echo "HelloWorld";
}
$function_holder = "sayHello";
$function_holder();

sayHello
No Output
HelloWorld
Error

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
phpinfo() will display about?
1. OS version information
2. PHP installation
3. Variables
4. HTTP headers

Option 4
All listed here
Option 2
Option 1

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function calc($price, $tax="") {
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);

84
0
42
Error

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
↑