<?php $languages = ["PHP", "Python", "Go"]; echo $languages[0]; // PHP echo $languages[1]; // Python echo $languages[2]; // Go // count() returns the number of items echo count($languages); // 3 ?>
Click Run to execute this code.