Does openable get ignored? if not what does it do?
function openSomething(openable $obj) {
$obj->open();
}
openable is a class btw. taken from a book.
bump
I hope it is correct. you passing the obj as an reference.
http://php.net/manual/en/functions.arguments.php
See the first user comment. The syntax means that the first parameter is a type or class called openable.
Thanks.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.