2016-07-07 3 views

Antwort

3

[] ist eine alternative Syntax array() in PHP eingeführt 5.4

[] ist nur ein leeres Array.


Diese

$table_report = array(
    'table_name' => $table, 
    'rows'  => 0, 
    'change'  => 0, 
    'changes' => array() 
); 

entspricht

$table_report = [ 
    'table_name' => $table, 
    'rows'  => 0, 
    'change'  => 0, 
    'changes' => [] 
];