Warum unterstützt PHP 7.3 die Null -Koales -Zuordnung nicht? Operator [Duplikat]Php

PHP-Programmierer chatten hier
Anonymous
 Warum unterstützt PHP 7.3 die Null -Koales -Zuordnung nicht? Operator [Duplikat]

Post by Anonymous »

Also habe ich Php V 7.3.29 auf meinem PC installiert. Ich habe einen Fehler mit Doku Wiki gemacht, der mir den folgenden Fehler gab: < /p>

Code: Select all

Parse error: syntax error, unexpected '=' in wiki\inc\init.php on line 462
Ich habe mir die Zeile angesehen und es verwendet den "Null Coalesce" -Operator, auf den ich vorher nicht gestoßen war, aber anscheinend in V 7.0.x eingeführt wurde (https://www.php.net/manual/en/migration70.new-feate.php)
php -v
PHP 7.3.29 (cli) (built: Jun 29 2021 12:30:03) ( NTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies

C:\php>php -a
Interactive shell

php > $a ??= 1;
PHP Parse error: syntax error, unexpected '=' in php shell code on line 1

Parse error: syntax error, unexpected '=' in php shell code on line 1
php > exit

C:\php>
[/code]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post