Page 1 of 1
Another newbie questions
Posted: Mon Oct 16, 2006 2:17 am
by pastijalan
Another newbie questions

. How does
function createURL($page = '', $ending = '')
differ from
function createURL($page, $ending)
Thx!
Re: Another newbie questions
Posted: Mon Oct 16, 2006 2:24 am
by Luke
pastijalan wrote:Another newbie questions

. How does
function createURL($page = '', $ending = '')
differ from
function createURL($page, $ending)
Thx!
The first one defines a function with two parameters with defaults of an empty string. So, you can call that particular function without supplying it the arguments, and it will just use the defaults.
The second one does not provide defaults, so it would require that you supply the necessary arguments
Posted: Mon Oct 16, 2006 2:54 am
by pastijalan
Thx Ninja!