Ben Godfrey

Default values in PHP

function blah($blah1, $blah2)

rewritten as

function blah($blah1 = "", $blah2 = "")

will have default values set on each of the variables. Useful for security and for predictability. Also, try Secure Software Solutions’ RATS system, as it works on C, C++, PHP, Python and others maybe.

Bookmark and Share

Comments

Add a new comment

Your avatar

Add a new comment

Cancel   Forgot password?
Cancel

Attention! Log in (if you've commented before) or use your OpenID.

You can use Markdown here.

Preview