Skip to content

Instantly share code, notes, and snippets.

@colindecarlo
Created July 3, 2015 13:19
Show Gist options
  • Save colindecarlo/195cbba6891ad022ff10 to your computer and use it in GitHub Desktop.
Save colindecarlo/195cbba6891ad022ff10 to your computer and use it in GitHub Desktop.
1. Objects in PHP have methods which are referred to as 'magic methods'. Name these methods and
describe thier individual functions.
2. PHP Objects support single inheritance, what keyword is used to define the inheritance
relationship and describe some key effects inheritance has.
3. PHP objects support property and method visibility. What are the keywords used to describe
visibility and describe how each keyword affects the property or method.
4. What is a Trait in PHP? What effect does a Trait have on a PHP class that uses it?
5. Within the definition of a PHP class, there are specific keywords that can be used to refer
to the class, or instance of the class, itself, what are those keywords and how does their
usage differ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment