Posted by J.O. Aho on 03/19/06 17:40
Steff wrote:
> I am wandering if my code is making sense... I use a lot the print function.
> Is it weird in this case where I have to display an array ? I thought it
> would be better to have the entire array in php but now I am not sure if
> that makes sense. Can you tell me please ?
Yes, you have a lot of print/echo in your PHP. IMHO the best is to keep pure
HTML outside the PHP, specially when you have big pieces of HTML to output.
Try as much as only use print/echo when you need to output dynamic stuff and
pure HTML when you have static output.
You will make it easier to read the code when not using so much echo/print and
on quite slow systems you may see a performance increase without these prints.
Not sure what you mean with array, as I didn't manage to locate one in your code.
//Aho
Navigation:
[Reply to this message]
|