var input type hidden name bla_bla value test preg_match_all stype ism

1
2
3
$var = '<input type="hidden" name="bla_bla" value="test">';
preg_match_all('#\stype\=\"([^"]*)"#ismU', $var, $found);
$type = $found[1]; // Нашли hidden