• 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
The below statement will return.$Var = substr(""abcdef"", -4, 1);

returns "d"
returns "f"
returns "cd"
returns "c"

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
$x = 75;
$y = 25;
function addition()
{
$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];
}
addition();
echo $z;

100
error
25
75

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function a() {
function b() {
echo 'I am bb';
}
echo 'I am a';
}
b();
a();

I am bI am a
Error
I am a Error
I am bb

ANSWER DOWNLOAD EXAMIANS APP

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

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

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 Salad
Salad is good for health
is good for health SaladSaladSaladSaladSalad

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
echo lcfirst("welcome to my India");

welcome to my india
Welcome to my india
welcome to my India
Welcome to my India

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
↑