Ah, good old VB.. :-)
Such functions don't exist in PHP.
You will have to write a (small) procedure for printing the data in a table.
Fortunately, there are functions to get data out of a database, and
te get the number of rows and columns in that data.
from there it's a matter of two for loops and a print statement.