mirror of
https://github.com/php/presentations.git
synced 2026-03-24 07:32:11 +01:00
11 lines
334 B
XML
11 lines
334 B
XML
<slide title="Assertion">
|
|
|
|
<blurb fontsize="3em">
|
|
Instead of checking return values of every function and calling %trigger_error()% on failure,
|
|
you can use a simpler alternative in the form of %assert()% that can accomplish the virtually
|
|
the same with a lot less code.
|
|
</blurb>
|
|
|
|
<example filename="assert.php" type="php" />
|
|
|
|
</slide> |