sizeof($array_variable) count($array_variable) Note: If we just pass a simple variable instead of a an array it will return 1.