[FX.php List] No valid index notice in php

Tim 'Webko' Booth tim at nicheit.com.au
Tue Oct 28 15:39:46 MDT 2008


On 29/10/2008, at 5:59 AM, Gareth Evans wrote:

> If (isset($value["Fieldname"][0])) {
>    echo $value["Fieldname"][0];
> }

Although sometimes they can be set but null so I tend towards

if (isset($value["Fieldname"][0]) && $value["Fieldname"][0]) != "") {
	echo $value["Fieldname"][0]);
}


Cheers

Webko


More information about the FX.php_List mailing list