This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
A child class will perform all the same functions and utilize the same properties as the parent class. Additionally, a child may add its own attributes and abilities.
Remember that the parent class will NOT know about any properties or methods added to the child.
Documentation
- strip_tags() - Strip HTML and PHP tags from a string. You can use the optional second parameter to specify tags which should not be stripped.
- trim() - Strip whitespace (or other characters) from the beginning and end of a string
- get_class() - Returns the name of the class of an object
- is_a() - Checks if the object is of this class or has this class as one of its parents
Other Option
Additional Features You Could "extend" a Listing
- logo
- dates
- code of conduct
- call for papers
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up