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

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

5
2
None of the mentioned
4

ANSWER DOWNLOAD EXAMIANS APP

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

a();

I am b
Error
I am bI am a
I am a Error

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function calc($price, $tax="") {
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);

84
42
0
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
↑