Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php $text = 'Hello world!'; ?>
<html>
<head>
<title>Contoh Short Tag</title>
</head>
<body>
//...tidak menggunakan Short Tag
<?php echo $text; ?>
//...menggunakan Short Tag
<?=$text?>
</body>
</html>
/* outputnya akan sama text 'Hello world!'
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment