Location: PHPKode > projects > PHP Toolbox > apidoc/phpx_assert.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE> phpx_assert</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
   <LINK REL="stylesheet" TYPE="text/css" HREF="docxx.css">
</HEAD>
 <body>
<h1>PHP/Toolbox#2</h1>
<a name=top>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#bottom">Bottom</a>]=
</div>
<br>
In file No file:<H2> <A HREF="#DOC.DOCU">phpx_assert</A></H2><H2>($condition,  $message="ASSERTION FAILED",<BR>&nbsp; $show=FALSE)</H2><BLOCKQUOTE>PHP/Toolbox custom assertion check routine.</BLOCKQUOTE>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>PHP/Toolbox custom assertion check routine.
If condition is false then:
<ol>
<li>	it logs the message;
<li>	if 'show' is true or SHOW_ASSERT_MESSAGES is defined then
it echoes the message with span class 'assert';<br>
otherwise, it tries to redirects to FAILED_ASSERTION_URL if defined;
<li>	it exits <sup><small>new!</small></sup> if ABORT_FAILED_ASSERTION <i>is defined</i>.
</ol>
</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<DL><DT><DT><B>See Also:</B><DD><!1><A HREF="log_message.html">log_message</A>()<BR><DD></DL><P> <a name=bottom>&nbsp;</a>
<div class="navbar">
=[<a href="index.html">Contents</a>]=[<a href="HIER.html">Class Tree</a>]=[<a href="#top">Top</a>]=
</div><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
Return current item: PHP Toolbox