...and called it this way:
$sql = 'CALL procedure_name()';
Thanks, but I found an alternative by creating mySQL procedures instead of functions.
CREATE PROCEDURE procedure_name()
I need to convert the following code from PostgreSQL into MySQL
CREATE TYPE type_name AS
Separate names with a comma.