Invisible <voi### [at] devnull> wrote:
> And here's a small pointless toy I just developed...
Don't mix HTML and PHP. That's just asking for maintenance nightmares.
> 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.
--
- Warp
Post a reply to this message
|