Welcome Guest, Not a member yet? Register   Sign In
Missing Argument Error

Empty is painfully misleading function name, as it should be about arrays (OCD kicking in), but it should most cases give you desired result - just be careful as sometimes string "0" could be valid URL attribute in some scenarios, when empty("0") evaluates to true.

Personally, I prefer is_null($id), but like I said, it's purely personal preference.

Messages In This Thread
Missing Argument Error - by lamxuyen1234 - 09-03-2018, 08:48 PM
RE: Missing Argument Error - by kierownik - 09-04-2018, 03:48 AM
RE: Missing Argument Error - by jreklund - 09-04-2018, 05:20 AM
RE: Missing Argument Error - by Pertti - 09-04-2018, 05:27 AM

Theme © iAndrew 2016 - Forum software by © MyBB