I admit I'm totally surprised about the buffered results. Nevertheless, may
I sugest you add the following to the series of tests?:
<h3>Using line-by-line single-quoted echo<br/>with comma separated
arguments</h3>
<?php
$start = mt();
print '<table style="display:none;" id="table2a">';
for ($x = 0; $x < $iterations; $x++)
{
echo '<tr><td>X is</td><td>',$x,'</td></tr>';
}
print '</table>';
$duration = mt() - $start;
print '<p>Took '.number_format($duration, 4).' seconds</p>';
?>
<p>» <a id="table2alink"
href="#"
onclick="document.getElementById('table2a').style.display='block';
document.getElementById('table2alink').style.display='none';return
false;">
Reveal output</a></p>
There seems to be one thing rarely anybody remembers, echo admits multiple
arguments, and as the numbers will show, (or at least they do in my
machine), they are the second best option.
Satyam
----- Original Message -----
From: "Stut" <stuttle@xxxxxxxxx>
To: "Jon Anderson" <jon@xxxxxxxxxxxxxxxxxx>
Cc: "Satyam" <Satyam@xxxxxxxxxxxxx>; <php-general@xxxxxxxxxxxxx>
Sent: Monday, September 11, 2006 5:56 PM
Subject: Re: Re: Newbie question about <?= ?>
How bored am I?
This bored: http://dev.stut.net/phpspeed/
Server is running PHP 5.1.2 (really should upgrade that) with no caches of
any sort.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php