Echo Command With Single Quotes Conflict ?
-
<?php
if( aicp_can_see_ads() ) {
// Shows the ad
echo ”;
}
?>I am putting code like the following (see below) inside the echo ”; but my code contains single quotes which conflict with the echo statement because the first single quote in my code complete the echo command.
<script>
document.write(‘<‘ + ‘h3 style=”text-align: center;”><‘ + ‘span style=”color: #a34040;”>’ + ‘More Gardening Ideas & Resources</span><‘ + ‘/h3>’);
</script>What can I do to get around this?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Echo Command With Single Quotes Conflict ?’ is closed to new replies.