- get_defined_vars: documentation ( source)
- implode: documentation ( source)
<?php
if( ! (array_key_exists( 'values', get_defined_vars()) && (is_array($values)))) {
throw new Exception(
implode(', ', [NULL, 'values', 'array', array_key_exists( 'values', get_defined_vars()) ? gettype($values) : 'none'])
);
}