10-07-2009, 12:20 AM
|
#12 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
Quote:
Originally Posted by benton
Please show how to do it. What sort of problems?
|
Multiple problems.
- You may get a PHP error for syntax.
- Shorter code is not always better code.
- A lack of complete understanding will be evident and more prominent with shortened bits of code.
- Most developers will like to have that extra line or two.
I would suggest something similar to what ETbyrne wrote above, it solves the solution and provides it in a function for reusable purposes.
|
|
|
|