Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

PHP Interview Questions and Answers

Ques 11. If the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?

Ans. 100, it's a reference to existing variable.

Is it helpful? Add Comment View Comments
Ques 12. What's the difference between accessing a class method via -> and via ::?
Ans. :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
Is it helpful? Add Comment View Comments
Ques 13. Are objects passed by value or by reference?
Ans. Everything is passed by value.
Is it helpful? Add Comment View Comments
Ques 14. How do you call a constructor for a parent class?
Ans. parent::constructor($value)
Is it helpful? Add Comment View Comments
Ques 15. What's the special meaning of __sleep and __wakeup?
Ans. __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook