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

583 байта убрано ,  22:26, 2 ноября 2022
→‎Приведение типов: Доработка таблицы
(→‎Приведение типов: Доработка таблицы)
Строка 350: Строка 350:
| float(0)
| float(0)


|  
| style="background-color: #ffff66"| string(5) "Array" + Warning
Warning: Array to string conversion in /home/user/scripts/code.php on line 125
string(5) "Array"
 
| []
| []
| {}
| {}
Строка 366: Строка 363:
| float(1)
| float(1)


|  
| style="background-color: #ffff66"| string(5) "Array" + Warning
Warning: Array to string conversion in /home/user/scripts/code.php on line 125
string(5) "Array"
 
| [0]
| [0]
| {"0":0}
| {"0":0}
Строка 382: Строка 376:
| float(1)
| float(1)


|  
| style="background-color: #ffff66"| string(5) "Array" + Warning
Warning: Array to string conversion in /home/user/scripts/code.php on line 125
string(5) "Array"
 
| ["abc"]
| ["abc"]
| {"0":"abc"}
| {"0":"abc"}
Строка 398: Строка 389:
| float(1)
| float(1)


|  
| style="background-color: #ffff66"| string(5) "Array" + Warning
Warning: Array to string conversion in /home/user/scripts/code.php on line 125
string(5) "Array"
 
| {"a":"b"}
| {"a":"b"}
| {"a":"b"}
| {"a":"b"}
Строка 414: Строка 402:
| float(1)
| float(1)


|  
| style="background-color: #ffff66"| string(5) "Array" + Warning
Warning: Array to string conversion in /home/user/scripts/code.php on line 125
string(5) "Array"
 
| [{"a":"b"}]
| [{"a":"b"}]
| {"0":{"a":"b"}}
| {"0":{"a":"b"}}
Строка 426: Строка 411:
| bool(true)
| bool(true)


|  
| style="background-color: #ffff66"| int(1) + Warning
Warning: Object of class stdClass could not be converted to int in /home/user/scripts/code.php on line 125
| style="background-color: #ffff66"| float(1) + Warning
int(1)
 
|  
Warning: Object of class stdClass could not be converted to float in /home/user/scripts/code.php on line 125
float(1)
 
| Object of class stdClass could not be converted to string
| Object of class stdClass could not be converted to string
| []
| []
Строка 443: Строка 422:
| bool(true)
| bool(true)


|  
| style="background-color: #ffff66"| int(1) + Warning
Warning: Object of class class@anonymous could not be converted to int in /home/user/scripts/code.php on line 125
int(1)


|  
| style="background-color: #ffff66"| float(1) + Warning
Warning: Object of class class@anonymous could not be converted to float in /home/user/scripts/code.php on line 125
float(1)


| string(5) "value"
| string(5) "value"
Строка 461: Строка 436:
| bool(true)
| bool(true)


|  
| style="background-color: #ffff66"| int(1) + Warning
Warning: Object of class Generator could not be converted to int in /home/user/scripts/code.php on line 125
int(1)
 
|
Warning: Object of class Generator could not be converted to float in /home/user/scripts/code.php on line 125
float(1)


| style="background-color: #ffff66"| float(1) + Warning
| Object of class Generator could not be converted to string
| Object of class Generator could not be converted to string
| []
| []