PHP Array Functions: count() and sizeof()

count(): Used to find the number of elements in the array. sizeof(): Used to find the number of elements in the array. COUNT_RECURSIVE: In multidimensional arrays, elements within all dimensions are included in the counting process. First, define and print an array. $ARRAY_LIST = ["maria","alex","jason","bob"]; echo "<pre>"; print_r(ARRAY_LIST); echo "</pre>"; Array  (       [0] => maria       [1]... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

Design a site like this with WordPress.com
Get started