Posts by Eric Tomich • 1 point
1 post
-
0
votes3
answers43
viewsA: How to Cast Another Class in PHP
In PHP you don’t have to put a type, you’re just instantiating an Object. In a way, the type would be "Object". And then you’ll instantiate an object in that variable. The example Luis gave above is…