- <?php
- define("SERVER_NAME", "localhost", true);
- echo SERVER_NAME;
- // localhost
- echo "<br>";
- echo server_name;
- // localhost
- ?>
--------------------------------------------------------------------------------------------
bool define ( string $name , mixed $value [, bool $case_insensitive = false ] )
2. 라인
difine() 상수함수에서 $name 이름에 $value값을 갖는 상수 선언합니다.
$case_insensitive가 TRUE이면 상수 이름이 대소문자를 구분하지 않습니다.
'php5 > 변수관련함수' 카테고리의 다른 글
변수 비어 있는지 확인 - bool empty ( mixed $var ) (0) | 2013.12.23 |
---|---|
변수 상수명 선언 확인 - bool defined ( string $name ) (0) | 2013.12.23 |
변수 16진수 확인 - bool ctype_xdigit ( string $text ) (0) | 2013.12.23 |
변수 대문자 확인 - bool ctype_upper ( string $text ) (0) | 2013.12.23 |
변수 눈에 안보이는 문자 확인 - bool ctype_space(string text) (0) | 2013.12.23 |