mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
example fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78380 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
16da188fe2
commit
40720bfd77
1 changed files with 2 additions and 4 deletions
|
@ -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)), "<br>";
|
||||
echo similar_text (md5($x), md5($x*$x)), "<br />;";
|
||||
}
|
||||
}
|
||||
|
||||
// Display the data stored in the profiler
|
||||
print_r (profile (TRUE));
|
||||
?>
|
||||
</pre>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue