Echo php Kya Hai? – What is Echo php In Hindi : – Hello Friends! आज हम इस आर्टिकल में आपको echo php के बारे में बताने जा रहे है जैसे echo php क्या है कैसे काम करता है और echo php का Syntax कैसे लिखा जाता है।
तो चलिए जानते है फिर Echo php Kya Hai? – What is Echo php In Hindi , Echo php क्या है? , Echo php In Hindi
Echo php क्या है? – Echo php In Hindi
PHP में echo एक Construct Language की तरह है। echo को एक Function समझा जाता है लेकिन echo एक Function नहीं है। PHP में echo एक Special Tool है जो की php की Core Functionality में hard कोड है।
अगर एक Programmer की नजर से देखे तो Language Construct भी Built in Functions के जैसे ही काम करता है पर इसमें एक Main Difference जो देखने को मिलता है वो ये है की php में engine इन्हे Different Different तरीके से Interpret करता है।
इन्हे भी पढ़े : –
- Article Tag HTML5 in Hindi – Article Tag Kya Hai?
- What is C Unions In Hindi – C Unions In Hindi
- What Is Error Handling C In Hindi – Error Handling kya Hai?
- C Language Kya Hai? – What is C Language In Hindi
जितनी भी Programming Language होती है ये सब कुछ keywords से मिलकर बनी होती है। इन keywords को Programming Language के Parser या Compiler के जरिये ही पहचाना जाता है।
Example के लिए मान लीजिये if,else जैसे Keyword है और php parser को ये पता होता है की ये Keyword किस Context में है। जैसे की हमने आपको ऊपर बताया की ये Language construct होती है।
Language Construct का मतलब ये होता है की किसी भी Language में Particular Operation को Express करने के लिए किसी Word को Build करने को Language Construct बोला जाता है।
Syntax of php echo
echo (“string $arg1[string $...]”;
जैसे की आप ऊपर दिए गए Syntax में देख सकते है की echo में आप String और Argument/variable दोनों को एक साथ Double Quotes के साथ दे सकते है। दोनों को एक साथ देने का मतलब है की आप echo के Through एक या एक से ज्यादा Arguments को प्रोसेस कर सकते है।
ये तो आप जानते ही है की echo एक Function नहीं है इसलिए आप इसे बिना Paranthesis के भी Use कर सकते हो।
Example Echo php
<?php
//print single sentence
echo "Hi, How are you?";
//print multiple sentence by concatenate with line break html tag
echo "Hi, How are you?" . "<br>" . "I am fine.";
//print variable
$name = "bloomtutorial";
echo $name;
//print variable with staic string
$name = "Komal";
echo "Hi " . $name;
//concatenate more than two variables
$age = 24;
$address = "ABC Path";
echo "Name = " . $name . " <br> Age = " . $age . " <br> Address = " . $address;
echo "<br>";
//print variable value in another way
echo "Hi my name is : $name" . "<br>";
//print multiline string
echo "Hi Komal
How are you?";
//print escaping character
echo "Hello escape \"sequence\" characters";
Conclusion
इस आर्टिकल में हमने आपको Echo php के बारे में बताये। उम्मीद है आपको ये आर्टिकल पसंद आया होगा। Echo php से जुड़ा कोई भी सवाल आपके मन में है तो आप हमे Comment करके पूछ सकते है।