Stored procedures are in databases universe. Of course you could call them from PHP (it is a programming language). If you want an example I could give you, just state the database that you dealing with. (Stored procedures in my view are the least commented things in internet .. DB2 stored procedures might be a deference but there are a lot of money for DB2 and their data converting systems (including from VSAM)