<?php $str = '<p value="1,\'goahead\'" your=\'56\' so=\'"<br />"\'>'; $DOM = new DOMDocument; $DOM->loadHTML($str); $p = $DOM->getElementsByTagName('p')->item(0); var_dump($p->hasAttributes());
You have javascript disabled. You will not be able to edit any code.