php : Membuat Array dengan php

Oleh : Abah Razi

بسم الله الرحمن الرحيم

Kita dapat mengurutkan data dengan array di php. Kodenya tampak seperti contoh berikut :

[code language=”php”]

<?php
$cars=array("Volvo","BMW","Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>

[/code]

About Reza Ervani 425 Articles
Adalah pendiri programming.rezaervani.com -

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.