Skip to content
Advertisement

PHP: Concatenate classes on each other

How can I concatenate a class onto another class in this manner?

JavaScript

Keep in mind that I will always know everything in the class that needs to be concatenated ahead of time, so generalization is not an issue.

Advertisement

Answer

This will concatenate two objects together assuming they’re the same type

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement