/ Published in: PHP
Usefull for IDE autocompletion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class MyObject { /** * @param MyObject $object * @return MyObject */ static public function cast(MyObject $object) { return $object; } } $myObject = MyObject::cast($_SESSION["myObject"]);
URL: http://ch.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting