Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> PHP

PHP में stripslashes() फ़ंक्शन

stripslashes() फ़ंक्शन

PHP में stripslashes() फ़ंक्शन एक कोटेड स्ट्रिंग से बैकस्लैश हटाने के लिए उपयोग किया जाता है।

सिंटैक्स

stripslashes(string $string): string

पैरामीटर्स

  • string - प्रोसेस की जाने वाली स्ट्रिंग

रिटर्न वैल्यू

stripslashes() फ़ंक्शन बैकस्लैश हटाकर स्ट्रिंग रिटर्न करता है। सिंगल बैकस्लैश (\) हट जाता है और डबल बैकस्लैश (\\) सिंगल बैकस्लैश (\) में बदल जाता है।

उदाहरण

<?php
$mystr = "Tom\ Hanks";
echo stripslashes($mystr);
?>

आउटपुट

Tom Hanks
  1. - PHP में quoted_printable_encode() फ़ंक्शन

    quoted_printable_encode() फ़ंक्शन PHP में quoted_printable_encode() फ़ंक्शन 8-बिट स्ट्रिंग को कोटेड-प्रिंटेबल स्ट्रिंग में बदलने के लिए उपयोग किया जाता है। सिंटैक्स quoted_printable_encode(string $string): string पैरामीटर्स string - कन्वर्ट की जाने वाली 8-बिट स्ट्रिंग रिटर्न वैल्यू quoted_print

  1. - PHP में quoted_printable_decode() फ़ंक्शन

    quoted_printable_decode() फ़ंक्शन PHP में quoted_printable_decode() फ़ंक्शन कोटेड-प्रिंटेबल स्ट्रिंग को 8-बिट स्ट्रिंग में बदलने के लिए उपयोग किया जाता है। सिंटैक्स quoted_printable_decode(string $string): string पैरामीटर्स string - इनपुट स्ट्रिंग रिटर्न वैल्यू quoted_printable_decode() फ़ंक्शन

  1. - PHP में nl_langinfo() फ़ंक्शन

    nl_langinfo() फ़ंक्शन PHP में nl_langinfo() फ़ंक्शन भाषा और लोकेल के बारे में विशिष्ट जानकारी प्राप्त करने के लिए उपयोग किया जाता है। नोट: यह फ़ंक्शन विंडोज पर काम नहीं करता। सिंटैक्स nl_langinfo(int $item): string|false पैरामीटर्स item - रिटर्न किए जाने वाले एलिमेंट को निर्दिष्ट करता है। निम्नलि