I made a PHP page with an array using the following syntax:
$Legenda = [ \"Cores\" => [\"#FF0000\", \"#FFA500\", \"#FFFF00\", \"#64FF00\", \"#00A
The shortened array syntax was only added in PHP 5.4: Arrays
As of PHP 5.4 you can also use the short array syntax, which replaces array() with [].
array()
[]
<?php $array = array( "foo" => "bar", "bar" => "foo", ); // as of PHP 5.4 $array = [ "foo" => "bar", "bar" => "foo", ]; ?>
Live result