$u1_nick = $this->session->userdata('userinfo')['screen_name'];如上的代码,在NetBeans里面报错,报错是:
"语法错误:
预期: instanceof, as, ->, =>, }, ',', OR, XOR, AND, =, +=, -=, *=, /=, .=, %=, &=, |+, ^=, <<=, >>=, ?, ';', ||, &&, |, ^, &, ==, !=, ===, !==, <=+, >=+, <, >, <<, >>, +, -, *, /, %, '.', ++, --, ], ), ':'
"
本人纯粹PHP新手,请大家指导一下,为什么在别人那儿是没问题的,是不是我有些PHP的特性没打开?非常感谢.
"语法错误:
预期: instanceof, as, ->, =>, }, ',', OR, XOR, AND, =, +=, -=, *=, /=, .=, %=, &=, |+, ^=, <<=, >>=, ?, ';', ||, &&, |, ^, &, ==, !=, ===, !==, <=+, >=+, <, >, <<, >>, +, -, *, /, %, '.', ++, --, ], ), ':'
"
本人纯粹PHP新手,请大家指导一下,为什么在别人那儿是没问题的,是不是我有些PHP的特性没打开?非常感谢.
(
[id] => 168780872
[idstr] => 168780872
[screen_name] => 醉仙
[name] => 醉仙
[province] => 5
[city] => 1
[location] => 四川 成都
[description] =>
[url] =>
[profile_image_url] => http://tp1.sinaimg.cn/168787872/50/563407034/1
[profile_url] => u/168770872
[domain] =>
[weihao] =>
[gender] => m
[followers_count] => 4
[friends_count] => 15
[statuses_count] => 26
[favourites_count] => 0
[created_at] => Sat Jan 30 23:09:57 +0800 2010
[following] =>
[allow_all_act_msg] =>
[geo_enabled] =>
[verified] =>
[verified_type] => -1
[re] =>
[status] => Array
(
[created_at] => Mon Jul 23 19:20:57 +0800 2012
[id] => 3.4710340007647E+15
[mid] => 3471034000764735
[idstr] => 3471034000764735
[text] => 我以前总感觉的多,结果......................................................不是........
[source] => 新浪微博
[favorited] =>
[truncated] =>
[in_reply_to_status_id] =>
[in_reply_to_user_id] =>
[in_reply_to_screen_name] =>
[geo] =>
[reposts_count] => 0
[comments_count] => 0
[mlevel] => 0
[visible] => Array
(
[type] => 0
[list_id] => 0
) ) [allow_all_comment] =>
[avatar_large] => http://tp1.sinamg.cn/168780872/180/565407034/1
[verified_reason] =>
[follow_me] =>
[online_status] => 0
[bi_followers_count] => 6
[lang] => zh-cn
)
这种用法只在 php5.4 中是合法的