Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Funtion naming and actions
#3
I agree so much on the $echo parameter!

WordPress does it well by using the following syntax:

get_something() to return a value &
the_something() to output it.

This should become standard.
Reply


Messages In This Thread
Funtion naming and actions - by hameau - 2011-10-16, 19:31:52
Funtion naming and actions - by mvlcek - 2011-10-16, 19:56:04
Funtion naming and actions - by lacroixca - 2011-12-05, 02:24:13



Users browsing this thread: 1 Guest(s)