4 ms·
You can do the following in PHP: some_function($param='hello', $somthingelse=3); It's not quite as good as the method in this post, as you still have to spe
by MattBearman 14y ago
You can do the following in PHP:
some_function($param='hello', $somthingelse=3);
It's not quite as good as the method in this post, as you still have to specify params in the correct order, but it means at a glance it's easier to remember what each parameter is. In fach I do this a lot for that very reason.
- function_seven 14y agoThat doesn't seem "right" to me, though. What if you have a variable in your calling scope that conflicts with a parameter in your function?
- ericingram 14y agoThat's an interesting way to express this!