Hell, I'm actually thinking if there's a way to make it worst, haven't found any, up to now...hey, you could connect to remote database with no purpose at all!
No, man, I was kidding.
You can even use echo intead of print, wich isn't a function but a procedure and it is a bit faster (faster, like a few miliseconds or less).
Anyway it's a goog programming practice to use the minimum recurses needed while achiving your goal.
Hope it helped a bit (I really don't think so, but at least it was funny).
Greetings, Paul.