Archívum - Már 2, 2017 - Fórum téma
PHP 7.1 array kezelés
Sziasztok!
Ubuntu Server 16.10-en van fent php 7.1. Php7.0-nál még tökéletesen működött:Ezt a hibát dobja:
Fatal error: Uncaught Error: [] operator not supported for strings in
■ Ubuntu Server 16.10-en van fent php 7.1. Php7.0-nál még tökéletesen működött:
- class valami {
- protected $var = array();
- public function method( $data ) {
- ...
- foreach( $data as $value ) {
- $var[] = $value;
- }
- ...
- }
- }
Fatal error: Uncaught Error: [] operator not supported for strings in