In other languages, saw something similar
function help(array name) { echo '1'; } function help(string name) { echo '2'; } help(array('Васек', 'Петруха')); //выведет 1 help('Клавчиха'); //выведет 2
those. the type of function transferred depends on the function call
Is there such a thing in php and how to implement it?