<?php
// Create a handler function
function my_assert_handler($file, $line, $code)
{
echo "<hr>Assertion Failed:
File '$file'<br />
Line '$line'<br />
Code '$code'<br /><hr />";
// exit;
}
// Set up the callback
assert_options(ASSERT_CALLBACK, 'my_assert_handler');
// Make an assertion that should fail
assert('false');
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/LFAYC on line 18
<hr>Assertion Failed:
File '/in/LFAYC'<br />
Line '18'<br />
Code 'false'<br /><hr />
Warning: assert(): Assertion "false" failed in /in/LFAYC on line 18