How can you easily avoid getting this error/notice:
Notice: Undefined offset: 1 in /var/www/page.php on line 149
... in this code:
list($func, $field) = explode('|', $value);
There are not always two values returned by explode, but if you want to use list() how can you then easily avoid the notice?
See Question&Answers more detail:os