Re: IF clause with precondition
| From: | Ferenc Kovacs | Date: | Thu, 29 Apr 2010 18:54:24 +0000 |
| Subject: | Re: IF clause with precondition | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48164@lists.php.net to get a copy of this message | ||
On Thu, Apr 29, 2010 at 8:08 PM, Sönke Brecht <soenke.brecht@web.de> wrote:
> Following code snippet did raise warnings concerning missing single array
> values ($buffer[$SourceColumnNo] is NULL for some keys)
>
>
if(!empty($SourceColumns[$SourceFileName]) && is_numeric($SourceColumnNo =
array_search($ColumnName, $SourceColumns[$SourceFileName])))
{
but I would split it into multiple checks.
Tyrael