Can any one please either advice or point me in the right director for how to strip strings out of strings.
In my case I have this variable.
$videoEmbed = the_sub_field('video_embed_code');
which is essentially this string (example)…
<iframe width="560" height="315" src="http://www.youtube.com/embed/2RR-tzGOyi0" frameborder="0" allowfullscreen></iframe>
My question is can the src attribute value be extracted? But using php and not javascript.
Any pointers or help would be most awesome.
Thanks
You can use DOMDocument: