It should be callable via whatever database extension you're using as a DB query, something like:
$result = mysqli_query("sp_get_employee_leave($i)");
However, putting that into a loop would seem rather inefficient, as opposed to coming up with one query (stored procedure?) that queries all rows in that table at once, returning a multi-row result set you could then iterate through.