PHP: runkit_constant_add - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

runkit_constant_redefine runkit_class_emancipate

Last updated: Fri, 26 Jan 2007

view this page in

# runkit_constant_add

(PECL)

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` в случае возникновения ошибки.

## Смотрите также

define()
runkit_constant_redefine()
runkit_constant_remove()

add a note User Contributed Notes
runkit_constant_add
There are no user contributed notes for this page.
runkit_constant_redefine runkit_class_emancipate

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST