Replace printf() with plain list echo

Replace printf() with plain list echo

Hi,

When i was fixing SupplierInquiry.php, I had to replace printf() with plain list echo using single-quotes. The reason is that printf() uses % characters as "special" characters (e.g. when the text to print has a ""Includes a 25% discount" character).

Also, I replaced printf() with plain list echo using single-quotes in Dashboard.php and SupplierPriceList.php.

The results are: less lines, a little less time, and "more readable" code. The last one, is my personal opinion.

If all agree, it is better to continue using a plain list echo using single-quotes instead a printf().

Re: Replace printf() with plain list echo

> Hi,
>
> When i was fixing SupplierInquiry.php, I had to replace printf() with
> plain list echo using single-quotes. The reason is that printf() uses
> % characters as "special" characters (e.g. when the text to print has
> a ""Includes a 25% discount" character).
>
> Also, I replaced printf() with plain list echo using single-quotes in
> Dashboard.php and SupplierPriceList.php.
>
> The results are: less lines, a little less time, and "more readable"
> code. The last one, is my personal opinion.
>
> If all agree, it is better to continue using a plain list echo using
> single-quotes instead a printf().
>
> Comments ?
>
> Best regards, Rafael.
>

If anyone is wondering about the persistently nasty comments made by Tim Schofield and wants the full story please see:
http://timschofield.blogspot.com/
Hell hath no fury like a woman (or Tim) scorned