Created
December 29, 2020 02:56
-
-
Save pedropbazzo/747270919fd157d8a46cf1a5cf9a683f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Car { | |
function Car() { | |
$this->model = "Tesla"; | |
} | |
} | |
// create an object | |
$Lightning = new Car(); | |
// show object properties | |
echo $Lightning->model; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment