Created
July 4, 2020 08:00
-
-
Save PakCu/e2661f72365b3dc4fd3682ce399591c2 to your computer and use it in GitHub Desktop.
PHP String - ${$var}
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 | |
| $harga = 100000; | |
| $x = "harga"; | |
| echo "Harga kereta ialah ${$x}"; //Harga kereta ialah 100000 | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment