January 2002
Intermediate to advanced
288 pages
8h 45m
English
isAnon — tests to see if the given user ID belongs to the Anonymous User
isAnon($uid);
isAnon is a quick but effective way to test if a given
user is registered or not. It returns true if the user is anonymous, false
otherwise. This function handles non-UIDs safely, so it can be used where a
user structure is not fully built. It is exported from
Slash::Utility::Environment.
use Slash::Utility;
return if isAnon($user->{uid});Read now
Unlock full access