Ascii, Character, array

Kegunaan ASCII :
$ascii_value=ord(“e”); echo $ascii_value;
101

php> $character = chr(65); echo $character;
A

$array=array(“Tom”,”James”,”Peter”); $comma_separated=join(“,”, $array); echo$comma_separated;
Tom,James,Peter
$array=array(“Ruby”,”PHP”,”Perl”); $comma_separated=implode(“,”,$array); echo $comma_separated;
Ruby,PHP,Perl

$age=18; echo “I am $age years old.”;
I am 18 years old.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s