Assert
(PHP4 >= 4.0b4)
Assert---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Check if assertion is False
Syntax: int assert (String|bool assertion)
Description:
If it turns out that False,assert () will check the given assertion and take the appropriate action. The advantage of the string assertion is less on the head (pager overhead), when the assertion check ends, and the message contains the assertion representation, when the assertion fails.
Assertion should be used as a feature of error removal, you can use them to do a sound check (sanity-checks) to detect states (conditions), which will always be true and point to some programming errors.
Assertions will not have to be used as a normal execution, like an input parameter check. If the assertion check is inactive (not activated), it will always be corrected (correct).
The performance of assert () can be configured by Assert_option () or. ini-setting.