Consider the following two files. When you run test.php, what would the output look like? test.php: include “MyString.php”; print “,”; print strlen(“Hello world!”); MyString.php: namespace MyFrameworkString; function strlen($str) { return strlen($str)*2; // return double the string length } print strlen(“Hello…

What is the output of the following code? class C { public $x = 1; function __construct() { ++$this->x; } function __invoke() { return ++$this->x; } function __toString() { return (string) –$this->x; } } $obj = new C(); echo $obj();…