note 110432 rejected from function.preg-match-all by aharvey
| From: | aharvey@php.net | Date: | Mon, 22 Oct 2012 02:56:06 +0000 |
| Subject: | note 110432 rejected from function.preg-match-all by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191470@lists.php.net to get a copy of this message | ||
Note Submitter: aditya dot 2ky at gmail dot com
----
After doing following : preg_match_all($pattern,$str,$anchor); If my next code line is : echo
count($anchor[2]); It gives me output : 50 But if my next code lines are echo count($anchor[2]);
$title = $anchor[2]; It shows me error "Notice: Undefined offset: 2" for BOTH lines. How
can adding a line give error in previous line ??