Jump to content

[SOLVED] small question about functions


xiao

Recommended Posts

$_POST, $_GET, etc are superglobals and are available anywhere, even inside functions.

 

However, it is better to write functions with arguments - it makes them more re-usable.

 

With your first function you could

something ('foo', 'bar');   // --> foo bar

 

but your second is limited to only those post and session values.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.