• 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
Which one of the following functions can be used to compress a string?

zip()
gzcompress()
zip_compress()
compress()

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
define("GREETING","Hello you! How are you today?");
echo constant("GREETING");

GREETING, Hello you! How are you today?
Hello you! How are you today?
“GREETING”,”Hello you! How are you today?”
GREETING

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
The below statement will return.$Var = substr(""abcdef"", -4, 1);

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

ANSWER DOWNLOAD EXAMIANS APP

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

49
Error
1
Sum

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function email()
{
$email = ’contact@examians.com’;
$new = strstr($email, ‘@');
echo $new;
}
email();

@examians.com
contact
contact@examians.com
examians.com

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();

No Output
HelloWorld
sayHello
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
↑