Comments In PHP IN Hindi
Comments In PHP
हम PHP में Comments का प्रयोग किसी Code को समझने के लिए किया जाता है |
कई बार ऐसा होता है की किसी पेज पर बहुत ज्यादा Lines में Code लिखा होता है हमे उस कोड को समझने में दिक्कत आती है | इसलिए हम PHP में Comments का प्रयोग किया जाता है |
Example:
<!DOCTYPE html>
<html>
<body>
<?php
//Single Line comment is this
# This Is Also An Single Line Comment
/*
This Is an Multiline Comment
it Have Block Lines That Spans Multiple Lines
*/
</body>
</html>
<html>
<body>
<?php
//Single Line comment is this
# This Is Also An Single Line Comment
/*
This Is an Multiline Comment
it Have Block Lines That Spans Multiple Lines
*/
</body>
</html>
Case Sansitivity In PHP
PHP की सबसे बड़ी खास बात ये है की Casesensitive(संवेदनशील) Programming Language है | जिसमे कोई भी Keywords, Classes, Functions आदि सब Casesensitive होते है | लेकिन Veriables Casesensitive नहीं होते है |
<!DOCTYPE html>
<html>
<body>
<?php
$color = "red";
echo "My House is " .$color. "<br>";
echo "My House is " .$COLOR. "<br>";
echo "My House is " .$coLOR. "<br>";
?>
</body>
</html>
<html>
<body>
<?php
$color = "red";
echo "My House is " .$color. "<br>";
echo "My House is " .$COLOR. "<br>";
echo "My House is " .$coLOR. "<br>";
?>
</body>
</html>
OUTPUT:
My House is red
My House is
My House is
Comments
Post a Comment