[thelist] one-line suppress PHP warnings?

Stephen Rider evolt_org at striderweb.com
Tue Mar 25 17:04:00 CDT 2008

True.  However...

I suppose it's also a question of wanting to learn particular tricks  
in PHP.  Over the long haul it's a pain to write a logic fork any time  
I want to do this.  Also clutters up the code.

I'm pretty sure there is a really easy way to do this (and probably  
obvious to experienced PHPers), but I don't know what to search for.   
Googling didn't turn up much beyond configuring PHP on the server or  
the .ini file....

On Mar 25, 2008, at 4:52 PM, Paul Bennett wrote:
> 3 lines to one?
> Are the original 3 lines working? If so it probably took longer to  
> write the email than to just move on to the next thing on your list.
> Unless this baby is going to be used by a million people, or will  
> need to be debugged by high school kids I seriously wouldn't worry  
> too much about reducing your code count by 2 lines.

More information about the thelist mailing list