0
within my system, it should take only the attribute "src" from within a variable and put into a new, follow the example:
//<iframe class="embed-responsive-item" src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Funiladmag%2Fvideos%2F4623781360978220%2F&show_text=0&width=476" width="476" height="476" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>
$iFrame = $_POST['vid_iframe'];
How would I get only what’s inside the "src"? I tried to use a explode but it didn’t work.
Using jQuery, you can do
$('.embed-responsive-item').attr('src')
and retrieve the iframe attribute.– Claudivan Moreira