|
Posted by Cristian Gutierrez on 07/13/05 17:18
Este lunes, jeffrey@example.invalid dijo:
> On Mon, 11 Jul 2005 20:09:09 +0000, Tim Van Wassenhove wrote:
>
>> I prefer
>>
>> print "<table width='{$width}'/>";
>
> I prefer:
>
> $thing1 = "table";
> $presto = "width";
> $width = preg_replace("/width/", "30", $presto);
> echo "<" . $thing1 . " " . $presto . "='" . $width . "'/" . preg_replace("/</", ">", "<");
My favorite:
$tag = '<table width="%d%%">';
printf($tag, $width);
--
Cristian Gutierrez /* crgutier@dcc.uchile.cl */
665.9238429876 - Number of the Pentium Beast
[Back to original message]
|