31 of 110 menu

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

English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline