note 46960 deleted from function.preg-match by betz
| From: | betz@php.net | Date: | Thu, 28 Oct 2004 17:35:10 +0000 |
| Subject: | note 46960 deleted from function.preg-match by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79282@lists.php.net to get a copy of this message | ||
Note Submitter: godfather83vn at yahoo dot com dot sg
----
Is there a way to get the string matched ? for example: i have a subject as below:
$subject = '<table>
<tr>
<td><img src="Images/anImage.jpg"></td>
</tr>
</table>';
now assume that: preg_match($pattern, $subject); will match the string <img
src="Images/anImage.jpg"> in the $subject, and i want to get it to output to the
screen.
Is there a way or a function in php used to do that ?
----
Reason: useless note