Optional Arguments in php

orbital 123

Veteran XX
I can't seem to find how to allow optional arguments to be passed into a function. I remember doing it back in school, but I can't seem to find it online. If you want to set the column width or colspan for the td tags, etc...
 
set a default value when you declare the argument name, like function dothis($this, $that="") { } $that would be optional.
 
Back
Top