is_countable()
to Check if a Variable is Countableis_countable()
to Check if a Variable is CountableThe is_countable()
function checks if a variable is countable. This is useful for validating input or ensuring that a variable is countable before using the count()
function.