Php Interview Questions & Answers: part4



Php Interview QUESTIONS AND ANSWERS :: part4 : 1 to 5

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

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

True
1
False
2

2.What will be the output of the following php code? array ( "population" => "11,35,000", "captial" => "Bangalore"), "Tamil Nadu" => array( "population" => "17,90,000", "captial" => "Chennai") ); echo $states["karnataka"]["population"]; ?>

karnataka 11,35,000
11,35,000
population 11,35,000
karnataka population

3.Which in-built function will add a value to the end of an array?

array_unshift()
into_array()
inend_array()
array_push()

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

3
4
5
6

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

orangebanana
appleorange
orangeorange
appleapple

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