mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
22 lines
239 B
Plaintext
22 lines
239 B
Plaintext
Nullsafe operator
|
|
-----
|
|
<?php
|
|
|
|
$a?->b;
|
|
$a?->b($c);
|
|
$a?->b?->c;
|
|
$a?->b($c)?->d;
|
|
$a?->b($c)();
|
|
new $a?->b;
|
|
"{$a?->b}";
|
|
"$a?->b";
|
|
-----
|
|
!!php7
|
|
$a?->b;
|
|
$a?->b($c);
|
|
$a?->b?->c;
|
|
$a?->b($c)?->d;
|
|
$a?->b($c)();
|
|
new $a?->b();
|
|
"{$a?->b}";
|
|
"{$a}?->b"; |