Difference Between Echo And Print Function In PHP In Hindi

Echo And Print In Hindi -Difference Between Echo And Print Function In Hindi

PHP

Echo And Print In Hindi:- Is Post Main Ham Dekhne Wale Hain Ki Difference Between Echo And Print Function In Hindi |

PHP Echo And Print In Hindi

Yadi Aapne  HTML Full Course  And CSS Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

PHP Programming Langauge Main Kisi Bhi Statements Ke Output Ko Display Karne Ke Liye Echo And Print Function Ka Istemal Kiya Jata Hai |

Inhe Ham Step By Step Dekhte Hain Or Inke Bich main Kiya Difference Hain Ye Bhi Ham Dekhne Wale Hain |

Difference Between Echo And Print Function In Hindi

Echo Function In Hindi

Echo Ka Istemal PHP Main Statements Ko Output Display Karne Ke Liye Kiya Jata Hain And Echo Statements Main Ek Se Jyada Parameters, (, comma) or ( . dot ) Se Separate Or Pass Kiye Jate Hain|

Echo Function Main print Function se Jyada Speed Hoti Hain Output Display Karne Main And echo Function Koi Value Bhi Return Nhi Karta Hain

echo parentheses () Ke Sath Istemal Kiya Jata Hain Ya Uske Bina Bhi Istemal Kiya Jata Hain |

For Example:

<php
  
  $name = "Hello World"
  echo "Welcome $name ";

  echo " ";
  echo (" Check Output ");
  
?>

Upper Diye Gaye Code Main Hamne Ek $name ka Variables Create Kiya Hain Or Usme Hamne String “Hello World” Store Kiya Hain Or Use Fir Echo Function Ki Help Se Display Kiya Hain. Iska Output Bhi Niche Check Kar Sakte Hain |

Output:

Welcome Hello World
Check Output

‘echo’ Pass Multiple Parameters

<php
  $a = 10;
  $b = 20;
  $c = $a + $b;
echo $a . " + " . $b . " = " . $c ;
?>

Output:

10 + 20 = 30

Print Function In Hindi

Print Function Ka Istemal PHP Main Statements Ko Output Display Karne Ke Liye Kiya Jata Hain And Print Statements Main Ek Se Jyada Parameters, Pass Nhi Kiye Jate Hain|

Print Function Main echo Function se Kam Yani Ki Slow Speed Hoti Hain Output Display Karne Main And print Function ‘1’ Value Return Karta Hain.

print parentheses () Ke Sath Istemal Kiya Jata Hain Ya Uske Bina bhi Istemal Kiya Jata Hain |

‘print’ return value For Example:

<?php
  $a = print("");
  print($a);
?>

Output:

1

‘print’ Example

<?php

 $a = 10;
 $b = 20;
 $c = $a + $b;

print $a . " + " . $b . " = " . $c;

?>

Output:

10 + 20 = 30

print Statement

<?php 
 print ("Hello World") 
 ?>

Output:

Hello World

Friends Mujhe Umeed Hai Ki Aapko PHP Echo Print Function Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *