I have this code of javascript
echo '<script type="text/javascript">';
echo 'document.write('<a style="display:block;width:100%;height:1px;" class="aff-ad-none"></a>');
window.AFF_ONLOAD = window.AFF_ONLOAD || [];window.AFF_ONLOAD.push({lkid:"11",affid:"10",size:"728*90",type:"1",language:"English",web_id:"40",version:110});
var aff_s = document.createElement("script"),aff_h = document.getElementsByTagName("head")[0];aff_s.charset = "utf-8";aff_s.async = !0;aff_s.src = "https://js.affasi.com/affasi_js.min.js";
aff_h.insertBefore(aff_s, aff_h.firstChild);
</script>';
I get Parse error: parse error, expecting ','' or';''
The error is in this line :
echo 'document.write('<a style="display:block;width:100%;height:1px;" class="aff-ad-none"></a>'); ....
How do i add single quote in echo command? This should fix the error i guess right?