Перейти к содержанию

PHP Шпаргалки: различия между версиями

94 байта добавлено ,  23:30, 2 ноября 2022
(→‎Приведение типов: Сокращение таблицы)
(→‎Приведение типов: Оптимизация)
Строка 401: Строка 401:
| style="background-color: #ffff66"| int(1)
| style="background-color: #ffff66"| int(1)
| style="background-color: #ffff66"| float(1)
| style="background-color: #ffff66"| float(1)
| ERROR!
| style="background-color: #ff6666"| ERROR!
| []
| []
| {}*
| {}*
Строка 418: Строка 418:


| []
| []
| object([/cdn-cgi/l/email-protection <nowiki>[email protected]</nowiki>])#1 (0) {}
| object(class@anonymous)
|-
|-
! (function() { yield 1; yield 2; })()
! (function() { yield 1; yield 2; })()
Строка 428: Строка 428:


| style="background-color: #ffff66"| float(1)
| style="background-color: #ffff66"| float(1)
| ERROR!
| style="background-color: #ff6666"| ERROR!
| []
| []
| object(Generator)#2 (0) {}
| object(Generator)
|-
|-
! fopen('file', 'r')
! fopen('file', 'r')
Строка 443: Строка 443:
| "Resource id #6"
| "Resource id #6"


| [resource(6) of type (stream)]
| [resource(6)]


| {"scalar":resource(6) of type (stream)}
| {"scalar":resource(6)}


|-
|-
|colspan="25"| * { } - здесь, короткое обозначение для object(stdClass)
! Примечания:
|colspan="2" style="background-color: #ffff66"| E_WARNING
|colspan="3"| * { } - обозначение для object(stdClass)
|colspan="2" style="background-color: #ff6666"| E_RECOVERABLE_ERROR
|-
|-
|}
|}