Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74187

How can I get or extract only ID string part from embedded google map html code?

$
0
0

I'm working on travelling website's CMS and I need to show embedded route map on website. I'm unable to figure out how do I extract some part of text/ID from whole embedded code? Is it possible to do in PHP?

Following is the embedded code:

<iframe src="https://www.google.com/maps/d/embed?mid=12ECwgUiQPMTqebkaNo-0KLbDwPMeUskHUxmR" width="100%" height="400" frameborder="0"></iframe>

I only want the mid part from the above code, Following is the output that I need:

12ECwgUiQPMTqebkaNo-0KLbDwPMeUskHUxmR

Please help me to solve this nightmare.....


Viewing all articles
Browse latest Browse all 74187

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>