- Trending Categories
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 141 Articles
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
899 Views
In PHP, the iconv() function is used to convert a string to the requested character encoding. It is used to perform a character set conversion on the string "string" from from_encoding to to_encoding.Syntaxstring iconv(str $from_encoding, str $to_encoding, str $string)ParametersThe iconv() function accepts three parameters: $from_encoding, $to_encoding and $string.$from_encoding− This parameter is used ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
187 Views
In PHP, the iconv_substr() function is used to cut a portion of a specified string by the offset and length parameters. Suppose we have a string "helloWorld" and we want to cut and show only the string (llowo), then we will select it by using numbers from 2 to 5.Syntaxstring ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
186 Views
In PHP, the iconv_strrpos() function is used to findsthe last occurrence of a needle within a haystack. Or, we can say that the iconv_strrpos() function returns the last character number from the haystack.Syntaxstring iconv_strrpos(string $haystack, str $needle, str $encoding)Parametersiconv_strrpos() accepts three parameters: $haystack, $needle and $encoding.$haystack− It denotes the whole ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
339 Views
In PHP, the iconv_strpos() function is used to read the first character from a given string. It finds the position of the first occurrence of a character in a string. It is an inbuilt function in PHP.Syntaxstring iconv_strpos(string $haystack, string $needle, int $offset, string $encoding)Note: strpos(), the return value of ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
256 Views
In PHP, the iconv_strlen() function is used to return the character count of a given string. This is an inbuilt function in PHP that is first used in PHP 5 version. Encoding is nullable from PHP 8.0.Syntaxstring iconv_strlen(str $string, str $encoding)ParametersThis PHP function accepts two parameters: $string and $encoding.$string− The ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
218 Views
In PHP, iconv_mime_encode() function is used to composes a MIME header field. This is an inbuilt PHP function.Syntaxstring iconv_mime_encode(string $field_name, string $field_value, array $options=[])The iconv_mime_encode() function is used to compose and return a string that represents a valid MIME header field, which looks like -Subject: =ISO-8859-1?Q?Pr=FCfung_f=FFCr?= Entwerfen von einer MIME ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
185 Views
In PHP, the iconv_set_encoding() function is used to set the current character encoding conversion. It is an inbuilt function in PHP that changes the value of the internal configuration variable specified by type to encoding.Syntaxstring iconv_set_encoding(string $type, string $encoding)Parametersiconv_set_encoding() takes two parameters − $type and $encoding.$type − The $type parameter can ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
304 Views
In PHP, iconv_mime_decode() function is used to decode a MIME header field. This is an inbuilt function in PHP that is used from the PHP 5 version.SyntaxString iconv_mime_decode(string $string, int $mode, string $encoding)ParametersThe iconv_mime_decode() accepts three different parameters− $string, $mode and $encoding. $string and $mode are mandatory parameters, but $encoding ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
130 Views
In PHP, iconv_mime_decode_headers() function is used to decode multiple MIME header fields at once. It is an in-built function in PHP.Syntaxiconv_mime_decode_headers($str_headers, $int_mode, $str_encoding)ParameterThe iconv_mime_decode_headers() function accepts three different parameters− $headers, $mode and $encoding.$headers − The $header parameter is used for the encoded headers. It is a string type parameter.$mode − ... Read More
![Urmila Samariya](https://www.tutorialspoint.com/assets/profiles/317041/profile/60_178965-1617360206.jpg)
Urmila Samariya
124 Views
In PHP, the iconv_get_encoding() function is used to retrieve the internal configuration variables of iconv extension. This function is an inbuilt PHP function which is being used from PHP 4 version.Syntaxmixed iconv_get_encoding($type = "all")ParameterThe iconv_get_encoding() function is used only single parameter $type.$type − The values of the optional type parameter ... Read More