Warp wrote:
> Don't mix HTML and PHP. That's just asking for maintenance nightmares.
I thought that was the design goal of PHP?
[Er, to be mixed with HTML, that is.]
>> echo '<tr><td align="center">‘<code>';
>> echo htmlspecialchars($symbol);
>> echo '</code>’</td><td align="right">';
>> echo $count;
>> echo '</td><td align="right">';
>> echo (int)($count / strlen($in) * 100);
>> echo '%</td><td align="right">';
>> echo abs(log($count / strlen($in)) / log(2));
>> echo '</td></tr>';
>> echo "\n";
>
> You don't need to make a separate 'echo' for each of those things.
You do if you only have a 40x40 character text window and a text editor
which malfunctions on long lines...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|