Php Interview Questions & Answers: part10



Php Interview QUESTIONS AND ANSWERS :: part10 : 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?

SaladSaladSaladSaladSalad is good
is good SaladSaladSaladSaladSalad
is good Salad
Salad is good

2.Which one of the following functions will convert a string to all uppercase?

strtoupper()
uppercase()
str_uppercase()
struppercase()

3.Which one of the following functions can be used to concatenate array elements to form a single delimited string?

explode()
implode()
concat()
concatenate()

4.Which among the following is/are not a metacharacter? i)/a ii)/A iii)/b iv)/B

Only i)
i) and iii)
ii), iii) and iv)
ii) and iv)

5.Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/ ? i) fol ii) fool iii) fooool iv) fooooool

Only i)
ii) and iii)
i), iii) and iv)
i) and iv)

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Opportunity is missed by most people because it is dressed in overalls and looks like work.- Thomas Edison