0

PHP - The correct way to use single && double quotation marks inside one another. For example:

<?php
   if($_SESSION['id']){  
      echo "<button class='logout' onclick='location.href='?logoff''>Logout</button>";
   }
?>

I am fairly new to programming but it is my understanding that single quotes go inside of the double quotes. Any help would be appreciated - Thank You.

posh2.0
  • 13
  • 1

0 Answers0