<?php echo $videoFirstArray['fileToUpload']; ?>
This field contains the ifrmae,something like this
<iframe width="560" height="315" src="https://www.youtube.com/embed/ISMzgunUono" frameborder="0" allowfullscreen></iframe>
From this i want this "ISMzgunUono".I've searched the forum and follwed the link but didn't find the any way to keep my 'fileToUpload' field inside the pregmatch. Some of the links that i follwed: Get YouTube video id from embed iframe code and this link gives an error how to get Video id from iframe of youtube in php or cakephp Expecting replies soon: