I got the following element in a string and i want to only keep "Alex"
<p class="f10">
<label class="fname">First name</label>
<input class="select" type="text" value="" name="person[firstname]">
Alex
</p>
I tried with preg_replace but i cant remove the inside element of
How i can do it?
. Also label and input classes are static
– Alex Bogias Oct 28 '13 at 11:30