Display quotes in PHP string

, by Prashant Gunjal


Program :

<html>
<head>
    <title>Echoing Quotes</title>
</head>
<body>
<?php
    $name="ABC";
    $rollno=10;
  
    echo "<br>My name is \"$name\" and my rollno is '$rollno' .<br>";
?>
</body>
</html>

OUTPUT :

0 comments: