28 of 110 menu

PHP Array Element

To output a array element in PHP, you should access it by its index, see the example:

<?php $arr = ['a', 'b', 'c']; echo $arr[0]; // will output 'a' echo $arr[1]; // will output 'b' echo $arr[2]; // will output 'c' ?>

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