Single Quote Concept in PHP : 3rd Day Lecture


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>  


Share this article :

Post a Comment

Give your reviews about this blog. Leave your comments. What do you think about this post?

Comments Guidelines:

1) I love to read comments, but please avoid spam.

2) Like this blog, share your insights, and spread the word.

3) You can use basic HTML/xHTML tags.

4) All comments are DoFollow—please use the section professionally.

5) Kindly mention your name or brand below your comment.

6) Constructive suggestions for improvement are always welcome.

7) Do not forget to explore our main agency platform at pingbooster.site.

Thanks for visiting Samee Articles.

========================================

Explore custom digital solutions and WordPress plugins at PingBooster Plugins.

Best Regards,

Samee U. Feroz

 
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger