• 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 stripos("I love php, I love php too!","PHP");

8
7
3
10

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
$str = "Hello World";
echo wordwrap($str,5,"n");

Hell 0 Wo rld
HelloWorld
Hello World
World

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 SaladSaladSaladSaladSalad
Salad is good for health
SaladSaladSaladSaladSalad is good for health
is good for health Salad

ANSWER DOWNLOAD EXAMIANS APP

PHP Functions
What will be the output of the following PHP code?
function b() {
echo "b is executed";
}
function a()
{
b();
echo "a is executed";
b();
}
a();

b is executeda is executed
b is executedb is executedb is executed
a is executed
b is executeda is executedb is executed

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

None of the mentioned
5
2
4

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑