undefined index
Posted: Sun Jun 10, 2012 9:16 am
I made a query to other site. An array is returned. However, which information is inside is not sure.
Suppose the array normally contains
A["a"],A["b"],A["C"]
but sometimes some of them might be missing. Therefore I got this kind of error message:
============================
Notice: Undefined index: author in /home/public_html/catalog/admin/insert_one.php on line 149
============================
Is there anyway I can let PHP ignore the missing, perhaps simply treat it as blank, without aborting the program?
Suppose the array normally contains
A["a"],A["b"],A["C"]
but sometimes some of them might be missing. Therefore I got this kind of error message:
============================
Notice: Undefined index: author in /home/public_html/catalog/admin/insert_one.php on line 149
============================
Is there anyway I can let PHP ignore the missing, perhaps simply treat it as blank, without aborting the program?