- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Urmila Samariya has Published 145 Articles
Urmila Samariya
201 Views
In PHP, we can use the function mb_substitute_character() to get the substitution character. This function specifies the substitution character when the input character encoding is not valid or the character code does not exist in the output character encoding.Note: The invalid characters may be substituted with no output, string, or int ... Read More
Urmila Samariya
1K+ Views
In PHP, multibyte string length (mb_strlen) function is used to get the total string length of a specified string. This function is supported in PHP 4.6.0 or higher versions.Syntaxint mb_strlen(str $string, str $encoding)Parametersmb_strlen() accepts two parameters: $string and $encoding.$string− It is used to check the string length$encoding− This parameter is ... Read More
Urmila Samariya
136 Views
The mb_detect_order() function in PHP can be used to set/get the character encoding detection in an order. This function is supported in PHP 4.2.0 or higher versions.Syntaxarray|bool mb_detect_order(str $encoding)Parametersmb_detect_order() accepts only one parameter $encoding with string, array and bool.$encoding− This encoding parameter is an array or comma-separated list of character ... Read More
Urmila Samariya
450 Views
In PHP, we can use the function mb_strtolower() to change a given string into lower case. It returns strings with all alphabetic characters converted to lowercase characters.Syntaxstring mb_strtolower(str $string, str $encoding)Parametersmb_strtolower() accepts two parameters: $string and $encoding.$string− The string being lowercased, returns strings with all alphabetic characters converted to lowercase ... Read More
Urmila Samariya
218 Views
In PHP, mb_strtoupper() is an inbuilt function that is used to change a given string to upper case.Syntaxstring mb_strtoupper(str $string, str $encoding)Parametersmb_strtoupper() accepts two parameters: $string and $encoding.$string− The string being uppercased.$encoding− This parameter is the character encoding. If it is absent or null, then the internal character encoding value ... Read More
Urmila Samariya
138 Views
In PHP, we can use the function mb_substr_count() to count the total number of substrings in a given string.Syntaxint mb_substr_count(str $haystack, str $needle, str $encoding)Parametersmb_substr_count() accepts three parameters: $haystack, $needle and $encoding.$haystack− This parameter will check the string.$needle− This parameter will be used to tell that the substring is found ... Read More
Urmila Samariya
1K+ Views
In PHP, mb_substr() is used to return the selected part of a given string. The multibyte safe substr() works based on the number of characters. It counts the position from the starting of the string. It will return 0 for the first character position and 1 for the second position ... Read More
Urmila Samariya
317 Views
mb_convert_case() is an inbuilt function in PHP that is used to perform case folding on a given string.Syntaxstring mb_convert_case(str $string, int $mode, str $encoding)Parametersmb_convert_case() accepts three parameters: $string, $mode and $encoding to perform case folding on a string.$string− This parameter is used to return the string being converted.$mode: The mode parameter is ... Read More
Urmila Samariya
616 Views
In PHP, the mb_chr() function is used to return character by Unicode code point value. This function returns a string having the character identified by the Unicode code point value, encoded in the specified encoding.Syntaxstring mb_chr(int $codepoint, string $encoding)Parametersmb_chr() accepts only two parameters: $codepoint and $encoding.$codepoint− This parameter is used to ... Read More
Urmila Samariya
721 Views
In PHP, the mb_check_encoding() function is used to check if the given strings are valid for the specified encoding. This function checks if the specified byte stream is valid for the specified encoding.Syntaxbool mb_check_encoding(str $value=null, str $encoding=null)Note: The function will check if the stated byte stream is valid for the ... Read More
To Continue Learning Please Login
Login with Google