Urmila Samariya has Published 108 Articles

PHP – idn_to_ascii() function

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:50:44

617 Views

The idn_to_ascii() function in PHP is used to convert a Unicode domain name into IDNA ASCII form. IDNA stands for Internationalizing Domain Names in Applications. It is a mechanism for handling internationalized domain names containing nonASCII characters.Syntaxstring idn_to_ascii( str $domain, integer $flags=IDNA_DEFAULT, ... Read More

PHP – exif_imagetype() function

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:46:33

1K+ Views

The EXIF (Exchangeable image file format) PHP extension enables to work with the metadata from the images taken by digital devices like digital cameras, cell phones, etc. It depends on the image file format. We can retrieve embedded thumbnails of images.The exif_imagetype() function in PHP is used to determine the ... Read More

PHP – exif_read_data() function

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:42:12

1K+ Views

The exif_read_data() function in PHP reads the EXIF (Exchangeable image file format) headers from an image file. This function extracts all the EXIF headers from an image file.SyntaxArray exif_read_data( str $file, str $section=null, bool $arrays=false, bool $thumbnail=false )Parametersexif_read_data() ... Read More

PHP – How to get or set the path of a domain?

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:39:00

679 Views

The bindtextdomain() function in PHP is used to set or get the path of a domain.Syntaxstring bindtextdomain($str_domain, $str_directory)Parametersbindtextdomain() accepts two parameters −$str_domain − This is the domain.$str_directory − This is the directory path. If the directory path is NULL, then it will return the currently set directory.Return Valuesbindtextdomain() returns the ... Read More

PHP – mb_ereg_search_init() function

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:37:13

163 Views

The mb_ereg_search_init() function in PHP is used to setup string and regular expression pattern for a multibyte regular expression match. The values are used for mb_ereg_search_regs, mb_ereg_search_pos, and mb_ereg_search.Syntaxbool mb_ereg_search_init( $str_string, $str_pattern=null, $str_options=null )Parametersmb_ereg_search_init() accepts three parameters −string − This is ... Read More

PHP – mb_strcut() function

Urmila Samariya

Urmila Samariya

Updated on 12-Oct-2021 06:35:18

513 Views

The mb_strcut() function in PHP is used to get a part of a specified string. It extracts the substring from a given string. It operates on bytes instead of characters. If the cut position happens to be between two bytes of multi-byte characters, then the cut is achieved starting from ... Read More

PHP – mb_strrichr() function

Urmila Samariya

Urmila Samariya

Updated on 11-Oct-2021 13:51:49

160 Views

The mb_strrichr() function in PHP is used to find the last occurrence of a character in a string within another string. This function is not case-sensitive like mb_strrchr(). This function finds the last occurrence of a needle in the given haystack string and returns that portion of the haystack. It ... Read More

PHP – mb_eregi() function

Urmila Samariya

Urmila Samariya

Updated on 11-Oct-2021 13:49:04

285 Views

The mb_eregi (multibyte regular expression ignore) function in PHP is used to ignore the regular expression match with multibyte support. This function performs the case-insensitive regular expression match with the multibyte support.Syntaxbool mb_eregi( $str_ pattern, $str_string, $arr_matches=null )For example(pattern = "or", ... Read More

PHP – mb_strrpos() function

Urmila Samariya

Urmila Samariya

Updated on 11-Oct-2021 13:44:01

364 Views

The mb_strrpos() function in PHP is used to find the position of the last occurrence of a string in another string. This function performs the multibyte safe strrpos() operation based on the number of characters. It counts the needle position from the starting of the haystack string.Syntaxint mb_strrpos( ... Read More

PHP – mb_strimwidth (multybyte strimwidth) function

Urmila Samariya

Urmila Samariya

Updated on 11-Oct-2021 13:32:09

795 Views

The mb_strimwidth() function in PHP is used to truncate a given string with specified width. It is used to cut out the specified width from a given string.Syntaxstring mb_strimwidth($str_string, $int_start, $int_width, $str_trim_marker, $str_encoding)For example, mb_strimwidth($str_string: "PHP Tutorials", $int_start: 2, $int_width: 10, $str_trim_marker: "...", ); Parametersmb_strimwidth() accepts five different parameters to ... Read More

Advertisements