php能定义数组为类的常量吗?? $array = array('1','2','3'); define("CONST_ARR", $array); print_r(constant("CONST_ARR"));//并没有任何信息不知楼主需求是什么,或许可以用其它全局变量,比方说session 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 class TopNavigatorBarMapping{ $first_level_dir=array('mywan'=>'我的玩网'); $second_level_dir=array( 'add_article'=>'博客文章', 'add_email'=>'站内短信', 'add_message'=>'站内留言', 'consolo_friend'=>'好友管理', 'more_article'=>'博客文章', 'more_bulletin'=>'站内公告', 'more_email_inbox'=>'站内短信', 'more_message'=>'站内留言', 'reply_email'=>'站内短信', 'reply_message'=>'站内留言', 'search_gamer'=>'用户搜索', 'search_pk_match'=>'擂台赛搜索', 'search_player'=>'球员搜索', 'show_all_match_score'=>'玩家成绩', 'show_article'=>'文章', 'show_bulletin'=>'站内留言', 'show_email'=>'站内短信', 'show_message'=>'站内留言' ); public function TopNavigatorBarMapping(){ } 那傻傻的问一下,怎么设置为长量?final一下吗?? in php manual :常量只能包含标量数据(boolean,integer,float 和 string)。so it can not be an array. 关于mysql_close()的必要性 yahoo-api 2层foreach套用如何逐步优化加载? smarty 三維數組循環, help 北京外商独资企业高薪聘请PHP程序员 求個簡單的計數機,請高手幫忙,急急急 mysql 表在php页面显示问题!!急急急 再问,怎样分类显示? 我的类引用那错了? 为什么不认识PHP变量?提示“Notice: Undefined variable: .......”,在线等 如果我把php服务器直接配置成html中运行php 应聘PHP程序员的须知 用php 怎么解析 web service 返回的 Array
$first_level_dir=array('mywan'=>'我的玩网');
$second_level_dir=array(
'add_article'=>'博客文章',
'add_email'=>'站内短信',
'add_message'=>'站内留言',
'consolo_friend'=>'好友管理',
'more_article'=>'博客文章',
'more_bulletin'=>'站内公告',
'more_email_inbox'=>'站内短信',
'more_message'=>'站内留言',
'reply_email'=>'站内短信',
'reply_message'=>'站内留言',
'search_gamer'=>'用户搜索',
'search_pk_match'=>'擂台赛搜索',
'search_player'=>'球员搜索',
'show_all_match_score'=>'玩家成绩',
'show_article'=>'文章',
'show_bulletin'=>'站内留言',
'show_email'=>'站内短信',
'show_message'=>'站内留言'
);
public function TopNavigatorBarMapping(){
}
final一下吗??