Echo And Print Keywords Difference in PHP : 3rd Day Lecture


echo And print in php

Echo Keyword Functionality in PHP

Sample 1 : Echo Usage

1 : Echo is used to print data.
2 : As I had described in my Old Echo Functionality post.
3 : Echo is used to print multiple stings at a time. Like
4 : You Know what is my name!.....My name is +Samee Ullah Feroz 

Print Keyword Functionality in PHP

Sample 2 : Print Usage

1 : Print is used to print date same as echo does. But....
2 : Print keyword is used to print a single sting at a time.
3 : You Know what is my name!.....

[Note] : As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. as Echo keyword did.



   <html>  
     <head>  
       <title>Echo And Print Keywords Differance in PHP : 3rd Day Lecture : Samee</title>  
     </head>  
     <body>  
       <h1 align="center">Echo Keyword Functionality in PHP</h1>  
         <h2 align="left">Sample 1 : Echo Usage</h2>  
           <?php echo "1 : Echo is used to print data. <br />"?>  
           <?php echo "2 : As I had described in my Old Echo Functionality post. <br />" ?>  
           <?php echo "3 : Echo is used to print multiple stings at a time. Like <br />" ?>  
           <?php echo "4 : You Know what is my name!.....","My name is <b>Samee Ullah Feroz</b>" //Here echo print "You Know what is my name!.....My name is Samee Ullah Feroz" at a time ?>  
       <h1 align="center">Print Keyword Functionality in PHP</h1>  
             <h2 align="left">Sample 2 : Print Usage</h2>  
              <?php print "1 : Print is used to print date same as echo does. But.... <br />" ?>  
           <?php print "2 : Print keyword is used to print a single sting at a time. <br />" //Like This Line is printed. String is the collection of alfabetes ?>  
           <?php print "3 : You Know what is my name!....." /*,"My Name is Samee Ullah Feroz"*/ ?>  
                <hr width="30%" align="center">  
                          <?php echo "<b>[Note] :</b> As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. <i>as Echo keyword did.</i>" ?>  
     </body>  
   </html>  


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.


Thanks for visiting Samee Articles.

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

Best Regards,

Samee U. Feroz

 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger