* @copyright (c) 2019, conlite.org * @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version) * @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version) * @link http://www.conlite.org ConLite.org * * $Id$ */ // security check defined('CON_FRAMEWORK') or die('Illegal call'); if (!function_exists('is_countable')) { /** * Verify that the contents of a variable is a countable value *

Verify that the contents of a variable is an array or an object implementing Countable

* @param mixed $var

The value to check

* @return bool

Returns TRUE if var is countable, FALSE otherwise.

* @link http://php.net/manual/en/function.is-countable.php * * @param Countable $var * @return boolean */ function is_countable($var) { return (is_array($var) || $var instanceof Countable); } }