example fix

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78380 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-04-16 10:26:20 +00:00
parent 16da188fe2
commit 40720bfd77

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.55 $ -->
<!-- $Revision: 1.56 $ -->
<chapter id="control-structures">
<title>Control Structures</title>
@ -925,7 +925,6 @@ declare (directive) statement
<title>Profile a section of PHP code</title>
<programlisting role="php">
<![CDATA[
<pre>
<?php
// A function that records the time when it is called
function profile ($dump = FALSE)
@ -951,14 +950,13 @@ profile ();
// Run a block of code, throw a tick every 2nd statement
declare (ticks=2) {
for ($x = 1; $x < 50; ++$x) {
echo similar_text (md5($x), md5($x*$x)), "&lt;br&gt;";
echo similar_text (md5($x), md5($x*$x)), "<br />;";
}
}
// Display the data stored in the profiler
print_r (profile (TRUE));
?>
</pre>
]]>
</programlisting>
</example>