• 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?
function calc($price, $tax="") {
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);

0
84
Error
42

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
echo ucwords("i love my country");

I love my country
I love my Country
I Love My Country
i love my Country

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
$op2 = "blabla";
function foo($op1) {
echo $op1;
echo $op2;
}
foo("hello");

helloblablablabla
error
helloblabla
hello

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function onespan>() {
define("const","I am awesome!");
echo constant("const");
}
one();

I am awesome!!
const, I am awesome!!
“const”,”I am awesome!”
const

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 bI am a
I am b
Error
I am a Error

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑