dozent_count( array $array = array() )

Determine if passed value is an array, if array, count that array, compatible with php > 7


Parameters

$array

(array) (Optional)

Default value: array()


Return

(int)


Source

File: includes/core-functions.php

	function dozent_count( $array = array() ) {

		if ( ! empty( $array ) && is_array( $array ) ) {
			return count( $array );
		}

		return 0;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.