I have a problem with integrations in the php code in javascript within single quotes
I need to put the variable $video
that will get the id of a YT video, instead of the id of the video **VARIABLEVIDEOHER**E
, but I tried all ways to put single and double quotes did not work to integrate more, someone could give me a light
<?php $video = 'BYN-DEM7Mzw';
$desc = '<script type="text/javascript">
function youtubeFeedCallback( data ){
document.writeln( data.entry[ "media$group" ][ "media$description" ].$t.replace( /\n/g, "<br/>" ) + "<br/>" ); }
</script>
<script type="text/javascript" src="http://gdata.youtube.com/feeds/api/videos/VARIAVELVIDEOAQUI?v=2&alt=json-in-script&callback=youtubeFeedCallback"></script>';
echo $desc; ?>