Monday, September 16, 2019

php - What exactly does || mean?

return (empty($neededRole) || strcasecmp($role, 'admin') == 0 || strcasecmp($role, $neededRole) == 0);


What exactly does the || mean in this statement? Can someone put this in english for me.



I promise I've googled this but I guess I don't know what to google for because I can't find anything.




thanks:)

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...