• 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
Above usleep() function pauses PHP for .usleep(1000000);

10 seconds
1 second
100 microseconds
1 microseconds

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will happen in this function call?
function calc($price, $tax) {
$total = $price + $tax;
}
$pricetag = 15;
$taxtag = 3;
calc($pricetag, $taxtag);

Type Hinting
Default Argument Value
Call By Reference
Call By Value

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

Error
sayHello
No Output
HelloWorld

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function do($myString) {
echo strpos($myString, "donkey",0);
}
do("The donkey looks like a horse.");

2
None of the mentioned
5
4

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
echo strtr("Hilla Warld","ia","eo");

Hello World
Hilla Warld
eo
ia

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
The arguments in a function are evaluated from .....

right to left
sometimes left to right and sometimes right to left
Always right to left
left to right

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
↑