mb_get_info() PHP में फ़ंक्शन का उपयोग mbstring की आंतरिक सेटिंग्स प्राप्त करने के लिए किया जाता है। यह फ़ंक्शन PHP 5.4 या उच्चतर संस्करण में समर्थित है।
सिंटैक्स
array|string|int mb_get_info(str $type = "all")
पैरामीटर
यह मल्टीबाइट जानकारी प्राप्त करने के लिए केवल एक पैरामीटर को स्वीकार करता है।
$प्रकार - यदि प्रकार पैरामीटर निर्दिष्ट नहीं है या इसे "सभी" . के रूप में निर्दिष्ट किया गया है , तो यह निम्नलिखित जानकारी लौटाएगा -
"internal_encoding", "http_input", "http_output", "http_output_conv_mimetypes", "mail_charset", "mail_header_encoding", "mail_body_encoding", "illegal_chars", "encoding_translation", "language", "detect_order", "substitute_character", "strict_detection"
यदि प्रकार पैरामीटर को निम्न में से किसी के रूप में निर्दिष्ट किया गया है -
"internal_encoding", "http_input", "http_output", "http_output_conv_mimetypes", "mail_charset", "mail_header_encoding", "mail_body_encoding", "illegal_chars", "encoding_translation", "language", "detect_order", "substitute_character" or "strict_detection",
तो यह निर्दिष्ट सेटिंग पैरामीटर लौटाएगा।
रिटर्न वैल्यू
mb_get_info() प्रकार . की एक सरणी देता है जानकारी अगर प्रकार निर्दिष्ट नहीं है, अन्यथा, यह एक विशिष्ट प्रकार देता है। यह विफल होने पर झूठी वापसी करेगा।
नोट - PHP 8.0.0 से, प्रकार "func_overload" और "func_overload_list" समर्थित नहीं हैं।
उदाहरण
<?php $string=mb_get_info(); print_r($string); ?>
आउटपुट
Array
(
[internal_encoding] => UTF-8
[http_output] => UTF-8
[http_output_conv_mimetypes] => ^(text/|application/xhtml\+xml)
[mail_charset] => UTF-8
[mail_header_encoding] => BASE64
[mail_body_encoding] => BASE64
[illegal_chars] => 0
[encoding_translation] => Off
[language] => neutral
[detect_order] => Array
(
[0] => ASCII
[1] => UTF-8
)
[substitute_character] => 63
[strict_detection] => Off
)