Even though I’m still quite a PHP novice, I’m fairly sure having “echo” and “print” statements in functions is a bad idea. A better idea is to use a return variable containing all the text which would be output by the echo/print statements. This allows for much more flexibility in working with the results of the function. Now if only more of the PHP books I bought had mentioned that…
Joe Maller.com
Comments are closed.
Other Stuff
Projects
- Basic Javascript Rollovers
My original JavaScript rollover tutorial, from 1996 - Email Address Protection
iPhoto
- Joe’s iPhoto AppleScripts for Date Manipulation
A set of utility scripts for adjusting dates in your iPhoto Library
Categories
Archives
Referers