Student Of Fortune

Data Types in PHP

Share on :
Program sample handling some basic data types in PHP.
<? php

 
$ NIM = "0411500400";
$ name = 'Chotimatul Musyarofah';
$ age = 23;
$ value = 82.25;
$ status = TRUE;

echo "NIM". $ NIM. "
";
echo "Name: $ name
";
print "Age:". $ age; print "
";
printf ("Value:% .3 f
", $ value);
if ($ status)
echo "Status: Active";
else
echo "Status: Not Active";
?>

0 comments on Data Types in PHP :

Post a Comment and Don't Spam!

Dont Spam please

 
Recommended Post Slide Out For Blogger

Recent Comments

My Rank