infolink

Thursday 29 March 2012

PHP Array Example

This tutorial is about the Array. Array is a list of data. Like
Car          // Array name

  • CIVIC                    // data of array
  • CITY                        // data of array
  • SANTRO                  // data of array
Here is the PHP code for array:


<?php
$cars[0]="CIVIC";
$cars[1]="CITY";
$cars[2]="SANTRO";
echo $cars[0] . " and " . $cars[1] . " are Honda products.";
?>

1 comment: