• 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
2
4
3

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
Which one of the following PHP functions can be used to build a function that accepts any number of arguments?

get_argc()
func_get_argv()
get_argv()
func_get_argc()

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
Which one of the following functions can be used to compress a string?

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function start($string)
{
if ($string < 45)
return 20;
else
return 40;
}
$t = start(90);
if ($t < 20)
{
echo "Have a good day!";
}
else
{
echo "Have a good night!";}

ERROR
None of the mentioned
Have a good day!
Have a good night!

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.";

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
Which of the following PHP functions can be used for generating unique id’s?

md5()
uniqueid()
id()
mdid()

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
↑