PHP Array Examples
Example of a regular PHP array:
<?php
$arr = ['a', 'b', 'c'];
?>
Example of an associative PHP array:
<?php
$arr = ['a' => 1, 'b' => 2, 'c' => 3];
?>
See Also
-
lesson
arrays in PHP
Example of a regular PHP array:
<?php
$arr = ['a', 'b', 'c'];
?>
Example of an associative PHP array:
<?php
$arr = ['a' => 1, 'b' => 2, 'c' => 3];
?>