B briansol Well-known member Feb 25, 2015 #1 can someone explain the "escape" reason for this code? i don' t understand the syntax, nor what it's called to google it more. Code: $visitor = \XenForo_Visitor::getInstance(); ...........^
can someone explain the "escape" reason for this code? i don' t understand the syntax, nor what it's called to google it more. Code: $visitor = \XenForo_Visitor::getInstance(); ...........^
P Paul B XenForo moderator Staff member Feb 25, 2015 #2 Where are you seeing that? Is it from an add-on?
B briansol Well-known member Feb 25, 2015 #3 yes, this particular example is from an addon, but it's not the first time i've seen it used. https://xenforo.com/community/resources/quick-reply-for-guest.4067/
yes, this particular example is from an addon, but it's not the first time i've seen it used. https://xenforo.com/community/resources/quick-reply-for-guest.4067/
Mike XenForo developer Staff member Feb 25, 2015 #4 It's the namespace delimiter: http://php.net/manual/en/language.namespaces.php