function define


definePodręcznik PHPPoprzedniNastępnydefine (PHP 3, PHP 4 )define -- Defines a named constant.Descriptionbool define ( string name, mixed value [, bool case_insensitive]) Defines a named constant. See the section on constants for more details. The name of the constant is given by name; the value is given by value. The optional third parameter case_insensitive is also available. If the value TRUE is given, then the constant will be defined case-insensitive. The default behaviour is case-sensitive; i.e. CONSTANT and Constant represent different values. Przykład 1. Defining Constants<?php define ("CONSTANT", "Hello world."); echo CONSTANT; // outputs "Hello world." echo Constant; // outputs "Constant" and issues a notice. define ("GREETING", "Hello you.",TRUE); echo GREETING; // outputs "Hello you." echo Greeting; // outputs "Hello you." ?> Zwraca TRUE w przypadku sukcesu, FALSE w przypadku porażki. See also defined(), constant() and the section on Constants. PoprzedniSpis treściNastępnyconstantPoczątek rozdziałudefined

Wyszukiwarka

Podobne podstrony:
function defined
function define
function define
function defined
function define syslog variables
function swf definerect
function swf definerect
function swf definefont
function swf definefont
function ncurses define key
function swf defineline
function swf definetext

więcej podobnych podstron