/* PASTE YOUR PROVIDED EDUHUB CSS HERE */
PHP COURSE • LESSON 21

PHP Array Functions

PHP has many built-in functions to work with arrays.

Function
Description
count()
Returns number of elements
array_push()
Adds new elements
array_pop()
Removes last element
in_array()
Searches inside array
array-functions.php


<?php


$numbers = [10,20,30];


echo count($numbers);


?>