Source Code:
(back to article)
<?php $html = '<p>This is a paragraph.</p>'; preg_match('/<p[^>]*>(.*)<\/p>/', $html, $matches); echo $matches[1]; // Outputs: "This is a paragraph."
Result:
Report an issue