PHP : assosiatif array

 <?php

$umur=array(
"Suneo"=>19,
"Nobita"=>21,
"Giant"=>24
);

echo $umur["Nobita"]."<br>".$umur["Suneo"];

?>

Output :
21
19

Share Button

By Rinaldo Jonathan

Admin of this site. Artis papan PCB. #zoneRinaldo #Controllerism Studio Demon, Stage Angel, Sleepy Developer, Smoke free. Kalkud SHS 2012, PCR G15.

Leave a Reply

Verified by ExactMetrics