anyone know if there's a way (and if so how) to output the result of mysql EXPLAIN via PHP. I just want to be able see what MySql returns from a query like "EXPLAIN SELECT stuff from my_table";

I know I can do this directly in mysql, but it's a pain in the butt and would like to be able to call it directly from a php script