MIKESTOWE.COM

you are here

Weekly Test

Weekly PHP Test

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 […]

Weekly PHP Test

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 […]

Weekly PHP Test

What does the following code echo out:

Weekly PHP Test

True or False: In PHP 5.4 Traits can have properties?

Weekly PHP Test

What does the following code produce in PHP 5.0+

Weekly PHP Test

In PHP empty(array()) returns true, where-as empty(array(1)) returns false. What does the following code produce in PHP 5.0+

Weekly PHP Test

Assuming $cache->load($key) contains a cache of “yes” and $mediaCacheEnabled = true, what will the var_dump of $data return in this case?