array

It can be used to create an array

Example

<?php
echo “<pre>”;
$array = array(‘PHP’,’ ASP’, ‘JS’,’AS’);
print_r($array);
?>

Output

Array
(
[0] => PHP
[1] =>  ASP
[2] => JS
[3] => AS
)

Share