String in PHP in hindi

What is String in PHP in hindi

String एक कैरेक्टर का Squence होता है जिसको single quato('')तथा double quoto("") के अंदर लिखा जाता है

php String functions in hindi

पीएचपी में निम्नलिखित फंक्शन पाए जाते है:-

  • strlen() - यह फंक्शन स्ट्रिंग के length को बताता है
  • Example:-
  • str_word_count() -यह फंक्शन स्ट्रिंग में वर्ड को काउंट करता है
  • Example:-
  • strrev() - यह फंक्शन स्ट्रिंग को रिवर्स करता है
  • Example:-
  • strpos() -यह फंक्शन स्ट्रिंग के अंदर के किसी स्पेशल Text को ढूंढता है
  • Example:-
  • str_replace() - यह फंक्शन किसी स्ट्रिंग में टेक्स्ट को replace करता है
  • Example:-

    Constants in PHP

    PHP में Constants, Identifier होते हैं जिन्हे हम variables की तरह ही define करते हैं , हालाँकि variables की तरह इनकी value mutable नहीं होती , means हम script के execution के समय इनकी value को change नहीं कर सकते हैं।

    how to create constant in php( php में constant बनाने के लिए)

    php में constant बनाने के लिए define() function का उपयोग करते हैं

    Syntax:

    define(name, value, case-insensitive)

    Parameter

    • Name: स्थिरांक का नाम निर्दिष्ट करता है
    • Value: स्थिरांक का मान निर्दिष्ट करता है
    • ase-sensitive: निर्दिष्ट करता है कि निरंतर नाम केस-असंवेदनशील होना चाहिए या नहीं। डिफ़ॉल्ट गलत है
    Example:-php define("boy", "This is a boy!"); echo boy;

No comments

Theme images by 5ugarless. Powered by Blogger.