That's already pretty streamlined...
On Jul 13, 2011 11:22 PM, "Ron Piggott"
wrote:
>
> Is there a way to stream line this:
>
> if ( ( $val <> "with" ) AND ( $val <> "from" ) ) {
>
> Ron
>
> The Verse of the Day
> “Encouragement from God’s Word”
> http://www.TheVerseOfTheDay.info
if( $val !== "with" && $val !== "from")
simple comparison = faster solution... also you want type-safe
you could do something like
if(!in_array($val, array("from","with"))) but its neither elegant nor fast
On Jul 14, 2011 12:22 AM, "Ron Piggott"
wrote:
2 matches
Mail list logo