Comments and Comment Blocks in PHP टिप्पणियाँ और टिप्पणी ब्लाकों PHP में
PHP supports C language, C++ programming language and Unix shell-style (Perl style) comments. PHP सी भाषा, सी + + प्रोग्रामिंग भाषा का समर्थन करता है और यूनिक्स खोल शैली (perl शैली) टिप्पणियाँ. In PHP, // or # is used to make a single-line comment or /* and */ to make a large comment block that spans several lines. PHP में, / / या # एक भी लाइन टिप्पणी या बनाने के लिए प्रयोग किया जाता है / * और * / एक बड़ी टिप्पणी ब्लॉक करने के लिए कि spans कई लाइनों.
For example: उदाहरण के लिए:
<?php <? PHP
echo 'This is a test'; //This is a single-line C++ style comment 'यह एक परीक्षण' गूंज रहा है; / / यह एक एकल लाइन सी + + शैली टिप्पणी है
echo 'This is another test';#This is another single-line shell-style comment 'यह एक और परीक्षण' गूंज रहा है; # यह है एक और एक लाइन खोल शैली टिप्पणी
/* This is a multi line comment / * यह एक बहु पंक्ति टिप्पणी है
Second line of comment */ टिप्पणी की दूसरी लाइन * /
?> ?>
The “one-line” comment styles comment to the end of the line or the current block of PHP code, whichever comes first. इस "एक लाइन" टिप्पणी शैली पंक्ति या जो भी पहले आए PHP कोड की वर्तमान ब्लॉक के अंत करने के लिए कोई टिप्पणी. This means that HTML code after the PHP script block (PHP mode broken with ?> and returns to HTML mode after end of PHP code block) will be printed. यह PHP स्क्रिप्ट खंड (PHP मोड से टूट जाने के बाद कि HTML कोड का अर्थ है?> और रिटर्न PHP कोड ब्लॉक के अंत के बाद मोड HTML में) मुद्रित किया जाएगा. If the asp_tags configuration directive is enabled, it behaves the same with // %> and # %>. यदि asp_tags कॉन्फ़िगरेशन निर्देश सक्षम है, यह / साथ /%> और #% वही व्यवहार>. However, the </script> tag doesn't break out of PHP mode in a single-line comment. फिर भी, </ स्क्रिप्ट> टैग PHP मोड का एक लाइन टिप्पणी में बाहर तोड़ नहीं है.
For example, उदाहरण के लिए,
<h1>This is an <?php # echo 'simple';?> example.<h1> <h1> यह है एक <? PHP # गूंज 'सरल';?> उदाहरण. <h1>
<p>The header above will say 'This is an example'.</p> इस शीर्षक <p> ऊपर 'यह एक उदाहरण है कहेगा. </ p>
C or C++ style comments end at the first */ encountered. सी और सी + + को * पहली / सामना शैली पर टिप्पणी अंत. Any nested /* and */ style comments will cause error, and it's pretty easy to make this mistake if you are trying to comment out a large block of code. कोई नीडिंत / * और * / शैली टिप्पणियाँ त्रुटि का कारण होगा, और यह सुंदर इस गलती के लिए आसान है अगर आप कोड का एक बड़ा ब्लॉक बाहर टिप्पणी करने की कोशिश कर रहे हैं.
<?php <? PHP
/* / *
echo 'This is a test'; /* This comment will cause a problem */ 'यह एक परीक्षण' गूंज रहा है; / * यह टिप्पणी * एक समस्या पैदा करेगा /
*/ * /
?> ?>
The PHP comments is useful when you want to comment or disable a large portion of HTML. इस PHP टिप्पणियाँ जब आप टिप्पणी करने के लिए या HTML के एक बड़े हिस्से को निष्क्रिय चाहते उपयोगी है. Instead comment the HTML code line by line, put the whole HTML block into PHP code block (ie, add <?php and ?>) and comment with /* and */. इसके बजाय, लाइन द्वारा एचटीएमएल कोड लाइन टिप्पणी PHP कोड खंड में पूरे HTML खंड रखा है (यानी, जोड़ <? PHP और?>) और के साथ टिप्पणी / * और * /.
IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: इस पृष्ठ है मशीन अनुवाद प्रदान की और "" के रूप में वारंटी के बिना है. Machine translation may be difficult to understand. मशीन अनुवाद को समझने में मुश्किल हो सकती है. Please refer to कृपया देखें original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव हो सकता है.
Related Articles संबंधित लेख
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 कॉलम आराम WordPress थीम टिप्पणियाँ-पृष्ठित के लिए paged.php-टिप्पणियाँ WordPress Plugin
- How to Add and Put Picture or Image in MySpace Comment कैसे जोड़ें और माइस्पेस टिप्पणी में चित्र या छवि डालो
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) सूची और दिखाना WordPress कैसे बाहर (नहीं) की अनुमति दें कि टिप्पणियाँ और पिंग्स पोस्ट
- Fight and Stop Comment Spam and Trackback Spam with Akismet लड़ो और Akismet साथ टिप्पणी स्पैम और Trackback स्पैम बंद करो
- Free Download: Akismet for WordPress Plugin 2.0 to Stop Comment, Trackback and Pingback Spam मुफ्त डाउनलोड: Akismet WordPress Plugin 2.0 के लिए स्पैम टिप्पणी, Trackback और Pingback बंद करने के लिए
- Google AdSense Policy Update Disallows Image Besides Ads Blocks विज्ञापन के अलावा गूगल ऐडसेंस नीति अद्यतन Disallows छवि ब्लाकों
- Stop Comment, Pingback and Trackback Spam with New Version of Akismet बंद करो टिप्पणी, Pingback और Trackback स्पैम नई संस्करणः Akismet के साथ
- Reduce Server Load Using Akismet to Automatically Discard Spam Comments on Posts Older than A Month कम सर्वर लोड स्वतः त्यागें स्पैम टिप्पणियाँ करने पर Akismet का प्रयोग एक महीने से अधिक पुराने पोस्ट
- Moderate WordPress Blog Comments Via Moderator with Desktop Client संयमी WordPress ब्लॉग टिप्पणियाँ Via मॉडरेटर डेस्कटॉप ग्राहक के साथ
- Integrate WordPress including Comments with bbPress Forum using bbSync एकीकृत WordPress मंच bbPress साथ टिप्पणियाँ का उपयोग करने सहित bbSync










































January 16th, 2009 01:11 जनवरी, 16 2009 01:11
[...] Er is een hack waarmee toch Hoge kwaliteit video kan geïntegreerd worden. [...] एर waarmee toch Hoge kwaliteit वीडियो kan हैक een है worden geïntegreerd. Zie How to Embed High Quality and Higher Resolution YouTube Videos on Blog or Website » My Digital Life [...] Zie कैसे उच्च एंबेड गुणवत्ता और उच्च संकल्प यूट्यूब वीडियो के लिए ब्लॉग या वेबसाइट »मेरे डिजिटल जीवन पर [...]
December 10th, 2007 01:30 दिसम्बर, 10 वीं 2007 01:30
[...] tip of the hat to My Digital Life for his article - Comments and Comment Blocks in PHP. अपने लेख के लिए मेरे डिजिटल जीवन के लिए टोपी के [...] टिप - टिप्पणी और टिप्पणी ब्लाकों PHP में. By Alec Tags: [...] एलेक टैग द्वारा: [...]
July 26th, 2006 06:45 26 जुलाई, 2006 06:45
[...] [...] http://www.mydigitallife.info/2006/04/26/dis… http://www.mydigitallife.info/2006/04/26/dis ... . . [...] [...]