Php Interview Questions & Answers: part10



Php Interview QUESTIONS AND ANSWERS :: part10 : 11 to 15

Following PHP Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :

11.What will be the output of the following PHP code?

nachiketh@example.com
nachiketh
nachiketh@
example.com

12.What will be the output of the following PHP code?

this is some text that we might like to parse.
Array ( [0] => some text that [1] => we might like to parse. )
Array ( [0] => this is [1] => some text that [2] => we might like to parse. )
[0] => this is [1] => some text that [2] => we might like to parse.

13.Say we have two compare two strings which of the following function/functions can you use? i) strcmp() ii) strcasecmp() iii) strspn() iv) strcspn()

i) and ii)
iii) and iv)
None of the mentioned
All of the mentioned

14.What will be the output of the following PHP code?

Array ( [0] => pasta [1] => steak [2] => fish [3] => potatoes )
Array ( [3] => potatoes )
Array ( [1] => steak )
Array ( [0] => potatoes )

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Failure defeats losers, failure inspires winners.-Robert T. Kiyosaki