Skip to content

Tag: shorthand

php shorthand return statement

So i was just recently looking for some examples of validating a unix timestamp. One code chunk that kept reappearing was this: Now I have looked for shorthand return if statements which I think this might be but I am not having any luck. can anyone explain to me how this function is deciding what to return a…