What is the output of the following code in PHP 5.3+? (Answer below poll, special thanks @ircmaxell for sharing) Create your free online surveys with SurveyMonkey , the world’s leading questionnaire tool. Answer: “UNKNOWN” The key here is that this file is namespaced, meaning that we are operating by default in the \Foo namespace, not […]
What is the output of the following code? … … … … … … … … … ANSWER: Because the number starts with a zero, it is interpreted as an Octal number instead of a decimal. This means instead of returning 42 as one might expect, it returns the octal calculation: 0 = signify Octal […]
What does the following code echo out:
True or False: In PHP 5.4 Traits can have properties?
What does the following code produce in PHP 5.0+
In PHP empty(array()) returns true, where-as empty(array(1)) returns false. What does the following code produce in PHP 5.0+
Assuming $cache->load($key) contains a cache of “yes” and $mediaCacheEnabled = true, what will the var_dump of $data return in this case?