Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Aptana 3 在 php 中打开一个工作项目,但我不断收到有关 [] 的错误消息。这是 aptana 抱怨的代码:
render("../templates/buy_search.php", ["title" => "Buy"] );
它正在抱怨打开 [ 并且它说语法错误。不知道为什么它会给出错误,因为该项目运行良好。
应该
render("../templates/buy_search.php", array("title" => "Buy"));
适用于5.4之前的所有 PHP 版本