contoh syntax PHP:
<?php
?>
Sebuah file PHP biasanya berisi tag HTML, dan beberapa kode PHP scripting. Bawah ini, kita memiliki contoh sederhana script PHP yang mengirim teks "Hello World" kembali ke browser:
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
Tidak ada komentar:
Posting Komentar