Welcome Guest, Not a member yet? Register   Sign In
How do these arguments work? [, int $status_code= 500 ] ?
#1

(This post was last modified: 03-10-2015, 09:36 AM by lexxtoronto.)

Im not too clear how exactly these arguments are passed.

show_error('message' [, int $status_code= 500 ] )

Why isnt comma just after 'message'? And why square brackets?


Oh and this one too show_404('page' [, 'log_error']) ---- first example it is an int $status_code and here its just 'log_error' -what is the difference?

PS. I do apologize for my stupid questions.
Reply


Messages In This Thread
How do these arguments work? [, int $status_code= 500 ] ? - by lexxtoronto - 03-10-2015, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB