PHP - Arrays
Identify the error in this PHP code:
$settings = ["theme" => "dark", "layout" = "grid"];
$settings = ["theme" => "dark", "layout" = "grid"];
=> operator.= instead of => for the key "layout", which is a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions