Last active
May 29, 2020 10:06
-
-
Save ombak/59e06989b8f8f7e1666bfeffc128965d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ClassSaya { | |
| //...properties | |
| public $prop1 = 'Saya properties pertama.'; | |
| } | |
| /* instansiasi class menjadi object | |
| */ | |
| $object = new ClassSaya; | |
| /* memanggil properties dari ClassSaya | |
| print "Saya properties pertama" | |
| */ | |
| echo $object->prop1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment