- var_dump: documentation ( source)
- preg_replace_callback: documentation ( source)
<?php
return preg_replace_callback(
'/(?<=(<|<)$s(>|>))(.*)(?=(<|<)\/$s(>|>))/i',
function($matches){var_dump($matches);die;},
'<tag>stuff</tag>'
);