• 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?
echo "chr(52)";

1
4
2
3

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function sum($num1, $num2) {
$total = $num1 + $num2;
echo "cos($total)";
}
sum(5,-5);

0
0.5
-0.5
1

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function one() {
echo " this works";
function two() {
echo "this too works";
}
}
one();
two();

this worksthis too works
this works
this works this too works
error

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function 2myfunc()
{
echo "Hello World";
}
2myfunc();

None of the mentioned
No Output
Hello World
ERROR

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
echo str_pad("Salad", 5)." is good for health.";

SaladSaladSaladSaladSalad is good for health
is good for health SaladSaladSaladSaladSalad
is good for health Salad
Salad is good for health

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function constant()
{
define("GREETING", "Welcome to Narnia",true);
echo greeting;
}

ERROR
GREETING
greeting
Welcome to Narnia

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
↑