Using plain PHP, you cannot call a PHP function directly, instead you send your request to a php script and pass it a parameter based on which then call the function that you want to invoke. For example:
in AJAX:
$.ajax({ url: 'phpscriptname.php',
data: {function2call: 'getEmployeesList', otherkey:otherdata},
type: 'post',
success: function(output) {
alert(output);
}
});
in phpscriptname.php:
if(isset($_POST['function2call']) && !empty($_POST['function2call'])) {
$function2call = $_POST['function2call'];
switch($function2call) {
case 'getEmployeesList' : getEmployeesList();break;
case 'other' :
}
}