garyfalkland
7/3/2019 - 9:29 AM

PHOP Counting Arrays Example

PHOP Counting Arrays Example

<?php

$books = array(
    array("Fiction", 15),
    array("Non-Fiction", 25),
    array("Biographies", 30),
    array("Misc", 12)
);

echo "<pre>";
print_r ($books);
echo "<pre>";

echo count($books[1]);

?>