PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<runkit_class_emancipaterunkit_constant_redefine>
Last updated: Mon, 16 Jul 2012

runkit_constant_add

(no version information, might be only in CVS)

runkit_constant_add --  Similar to define(), but allows defining in class definitions as well

说明

bool runkit_constant_add ( string constname, mixed value )

参数

constname

Name of constant to declare. Either a string to indicate a global constant, or classname::constname to indicate a class constant.

value

NULL, Bool, Long, Double, String, or Resource value to store in the new constant.

返回值

如果成功则返回 TRUE,失败则返回 FALSE




<runkit_class_emancipaterunkit_constant_redefine>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST