• 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 "c"
returns "d"
returns "cd"
returns "f"

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code ?
function test($int)
{
if ($int == 1)
echo "This Works";
if ($int == 2)
echo "This Too Seems To Work";
}
test(1);
TEST(2);

This Too Seems To Work
This Works
This WorksThis Too Seems To Work
ERROR

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 ?
function uppercase($string) {
echo ucwords($string);
}
$wow = "uppercase";
$wow("Time to live king size");

TIME TO LIVE KING SIZE
Uppercase
Time To Live King Size
Time to live king size

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
. . . . returns a new DateTime object.

date()
date_create()
date_sunrise()
getdate()

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑