Welcome Guest, Not a member yet? Register   Sign In
URl
#3

(This post was last modified: 03-24-2015, 04:05 AM by Avenirer. Edit Reason: additional info... )

And this is not normal?

You can put something like

PHP Code:
public function article ($param_one$param_two NULL)
{
 
 if(!is_null($param_two))
 
 {
 
   //do whatever redirect you want
 
 }
 
 // else do what you need to do


Or you can simply find out if the number of parameters are bigger than what you need with func_num_args().
Reply


Messages In This Thread
URl - by amit363 - 03-23-2015, 10:38 PM
RE: URl - by ciadmin - 03-23-2015, 11:33 PM
RE: URl - by Avenirer - 03-24-2015, 04:02 AM
RE: URl - by CroNiX - 03-24-2015, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB