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.....