इस आर्टिकल में हम php syntax in hindi, comment use in php in hindi , single line comment and multi line comment को example के साथ समझेंगे. पहले syntax जानलेते की इसका किसी programming language में क्या role होता हैं.
what is syntax in hindi
programming की भाषा में syntax को किसी प्रोग्रामिंग language का set of rule कहते हैं. जिसे use करते हैं किसी भी valid expressions statements और programming unit बानने के लिये .
Example – [email protected] को देखकर ही पता चल रहा है की ये एक email address हैं क्योकि किसी भी email address का एक particular syntax होता हैं. किसी email address में number, character, underscore( _ ) तथा (.) का combination हो सकता हैं उसके बाद (@) फिर domain name होता हैं.
इनको भी पढ़े
why & where syntax is used in hindi
- syntax का used computer को proper instruction देने के लिये use किया जाता हैं.
- किसी भी programming language में syntax होते हैं जो computer को instruction provide करते हैं.
Example :- add x+y ये computer को दो value add करने की instruction देता हैं.
- अगर हमको किसी programming language को proper तरीके से समझना हैं. तो हमको उसके syntax को समझना होगा.
- किसी भी programming language के अलग – अलग set of rule होते हैं उसकी के द्वारा ही proper programming structure बनती हैं.
php syntax in hindi
- php script मको आप php file में कंही भी लिख सकते हैं.
- php start होता हैं “<?php” और बंद होता है ” ?>” से
- php file को “.php ” से save करते हैं. यानी की php file extension (.php ) होता हैं.
<html> <body> <h1>php syntam</h1> <?php echo "Hello shree"; ?> </body> </html>
- php file के अंदर HTML tag का भी use कर अकते हैं. इसके आलावा css, java Script, भी use कर सकता हैं.
comment use in php
पहले comment समझते हैं comment क्या होती हैं.
what is comment
- Comment एक one type expiation हैं. जिसको हम program में लिखते हैं.
- comment का use किसी भी program में basically code या logic enplane करने के लिये किया जाता हैं. जब program की file को execute करते हैं तो comment execute नहीं होती हैं.
- php single line comment and multi line comment दोनों को support करता हैं.click
- //this is a single line comment.
- /*
this is a multi line comment.
*/
single line comment Example
<html> <body> <h1>php syntam</h1> <?php //this is a singl line comment //shreekant singh echo "Hello shree"; ?> </body> </html>
Multi line comment Example
<html> <body> <h1>php syntam</h1> <?php /*this is a singl line comment php is power full programming language php is site sarver programming language shreekant singh*/ echo "Hello shree"; ?> </body> </html>
इनको भी पढ़े
- vector and raster scan display in computer graphics (in Hindi)
- Public, private, hybrid and community cloud model (in Hindi)
- What is software testing tutorial in hindi
आशा करता हूँ आपको php syntax in hindi, comment use in php in hindi , single line comment and multi line comment समझ में गया होगा . अगर आपको इससे related कोई question पूछना है तो आप comment करके पूछ सकते है . हम आपकी comment का जबाब जरुर देंगे . अगर हमारे द्वारा दी गयी जानकारी अच्छी लगी हो तो हमे comment करके जरुर बताये और आपका हमको कोई सुझाब हो तो उसे भी जरुर बताये . दोस्तों आपसे एक request है . आप इस जानकारी को आपने दोस्तों , रेस्तेदारो के साथ जरुर शेयर करे | धन्यबाद