Single ' ' Quote Concept in PHP
Sample 1 : Single Quote As Double Quote
My Name is Samee. And I am here to learn PHP.My Name is Samee and my friends call me Sam.
Real Single Quotes Effact
My age is {$age}
My Short Name Is $name
<html>
<head>
<title>Single Quote ' ' Concept in PHP : 3rd Day Lecture</title>
</head>
<body>
<h1 align="center">Single Quote Concept in PHP</h1>
<!--This Topis is also related to Display of Variables in PHP : 3rd Lecture of PHP -->
<h2 align="left">Sample 1 : Single Qoute As Double Qoute</h2>
<?php echo 'My Name is Samee. '.'And I am here to learn PHP. <br />' ?>
<?php echo '<p>My Name is Samee and my friends call me <b>Sam</b>. </p>' #you can use html also in single quote ?>
<?php echo '<b>Real Single Quotes Effact</b> <br />'?>
<?php
$age=22;
echo 'My age is {$age} <br />' //As you can see in output that single quote does not support to variables.
?>
<?php
$name = "Samee Ullah Feroz";
echo 'My Short Name Is $name' //As you can see in output that single quote does not support to variables also without curly brackets.
?>
</body>
</html>
Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.
---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards