Saturday, April 30, 2011

Tipe Data di PHP

<?php
$nim = "0912";
$nama = 'TIFA';
$umur = 20;
$nilai = 82.25;
$status = TRUE;

echo "NIM  : " . $nim . "<br>";
echo "Nama : $nama<br>";
print "Umur : " . $umur; print "<br>";
printf ("Nilai : %.3f<br>", $nilai);
if ($status)
    echo "Status : Aktif";
else
    echo "Status : Tidak Aktif";
?>

0 comments:

Post a Comment