Philip Olson ...
> You know what's annoying?  This (yes, it happens)  :
>
>     echo ("<table bgcolor=\"#ffffff\">");
>     echo ("<tr>");
>     echo ("<td bgcolor=\"#eeeeee\" width=\"300\">");
>     print("Name :");
>     $name = 'johnny';
>     printf("%s %s %s","<b>","$name","</b>");
>     echo ("</td>");
>     echo ("<td bgcolor=\"#eeeeee\" width=\"300\">");
>     print("Title :");
>     $title = 'smith';
>     printf("%s %s %s","<b>","$title","</b>");
>     echo("</td>");
>     echo("</tr>");
>     echo("</table>");

I'd suggest:


    echo "<table bgcolor='#ffffff'>
    <tr>
    <td bgcolor='eeeeee' width='300'>
    Name : ";

    $name = 'johnny';

    echo "<B>$name</B>
    </td>
    <td bgcolor='#eeeeee' width='300'>
    Title : ";

    $title = 'smith';

    echo"<B>$title</B>
    </td>
    </tr>
    </table>");

This way, the code IS readable, for small-medium size echoing.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to