看下面的代码:
<?php
//The array stores the nodes of a blog entry
$entry = array('title' => "My First Blog Entry",
'author' => "daNullSet",
'date' => "August 10, 2012",
'body' => "This is the bosy of the blog");
echo "The title of the blog entry is ".{$entry['title']};
?>
它给了我以下错误。
解析错误:语法错误,第 7 行 C:\xampp\htdocs\php-blog\simple-blog\array-test.php 中的意外 '{'
如果我在上面的代码中删除在 echo 语句中引入复杂语法的大括号,错误就会消失。请帮我调试上面的代码。谢谢!