Skip to main content

Posts

Showing posts with the label PHP tags in Hindi

PHP tags (PHP class part 2 in Hindi )

  PHP tags  Introduction to PHP Tags जब कोई PHP file parse होती है तो parser opening और closing tags को search करता है। Basically parser interpreter का part होता है और PHP code को अलग अलग हिस्सों में तोड़ता है ताकि पता लग सके की कौनसा हिस्सा tag है और कौनसा actual data है। Parser वही कोड parse करता है जो opening और closing tags के बीच में हो बाकि सारा कोड parser ignore कर देता है। ऐसा हो सकता है की आपको अपने document में कई अलग अलग जगह पर PHP code यूज़ करना पड़े। यदि आप ऐसा बिना PHP tags को define किये करते है तो parser उस PHP code को execute नहीं करेगा। इसलिए आप जँहा भी PHP code लिखेंगे वह PHP के opening और closing tags के बीच में ही होगा। Types of PHP Tags PHP 4 तरह के tags provide करती है। हालाँकि PHP के latest version में इनमें से कुछ tags को disallow कर दिया गया है। निचे इन tags के बारे में बताया जा रहा है।   Next class part 3