update : 2015.11.03
php.shukuma.com검색:
|
exit(PHP 4, PHP 5) exit — Output a message and terminate the current script 설명
void exit
([ string
$status
] )
void exit
( int
$status
)Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.
exit is a language construct and it can be called
without parentheses if no 인수
반환값값을 반환하지 않습니다. 예제
Example #1 exit example
<?php
Example #2 exit status example
<?php
Example #3 Shutdown functions and destructors run regardless
<?php 위 예제의 출력: Shutdown: shutdown() Destruct: Foo::__destruct() |