- substr: documentation ( source)
- strpos: documentation ( source)
<?php
$o = '<label for="id_title" class="control-label">Title</label>';
#$label = strstr('<label for="id_title" class="control-label">Title</label>', '>');
$o = substr($variable, 0, strpos($o, ">"));
#echo($label);
echo($o);