mirror of
https://github.com/danog/parser.git
synced 2024-12-11 16:49:47 +01:00
9 lines
139 B
PHP
9 lines
139 B
PHP
|
<?php
|
||
|
|
||
|
$foo = give_me_foo();
|
||
|
|
||
|
$a = [
|
||
|
'single' => $foo instanceof Foo,
|
||
|
'multiple' => $foo instanceof Bar && $foo instanceof Baz
|
||
|
];
|