PHP html_entity_decode() Function4 Sept 2024 | 1 min read PHP html_entity_decode() is string function. It is used to convert HTML entities to characters. The string function html_entity_decode() is the opposite of htmlentities(). Syntax:
Example 1Output: JavaTpoint.com Example 2Output: Array ( ["] => " [&] => & [<] => < [>] => > ) Example 3Output: Hello PHP : 'E=MC�' Hello PHP : 'E=MC�' Hello PHP : 'E=MC�' Next TopicPHP String |
PHP Function The is predefine string function of PHP. It is used to find the position of the last occurrence of a string inside another string. Syntax: Strripos(string,find,start); Parameter Description Required/Optional String Specify the string to search. Required Find Specify he string to find. Required Start Specify where to begin the search. Optional The function returns the position of...
1 min read
PHP string Function The is in-built PHP function which is use to pad a string to a certain length. It returns input string padded on the left, right both sides to the specified function. Syntax: str_pad(string,length,pad_string,pad_type) Parameter Description Required/Optional String Specify the string. Required Length Specify the new string length. Required Pad_string Specify the string for padding. Optional Pad_type Specify what...
1 min read
PHP Function The function is predefined function of PHP. It is used to find the length of string or returns the length of a string including all the whitespaces and special character. Syntax: strlen(string); Parameter Description Required/Optional String Specify the string to check. Required. Example 1 <?php $str = 'Javatpoint'; echo "Your String is:".$str; echo "<br>"; echo "By using...
1 min read
PHP Function PHP convert_cry_string() function is used to convert from one Cyrillic character-set to another. Syntax: string convert_cyr_string ( string $str , string $from , string $to ); Parameter Description Required/Optional String String to convert Required from Specify the Cyrillic character-set to convert. Required to Specify the Cyrillic character-set to convert. Required The supported Cyrillic character-sets are; k - koi8-r w -...
1 min read
PHP Function The strops() is in-built function of PHP. It is used to find the position of the first occurrence of a string inside another string or substring in a string. Syntax: int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ); Parameter Description Required/Optional string Specify the...
2 min read
PHP String function The function is an in-built function of PHP. It is a case-sensitive function which finds the first occurrence of a string. The is mainly used to search the first occurrence of a string inside another string and displays some part of...
3 min read
PHP string Function PHP string is predefined function. It is used to replace some character with some other characters. It is case-insensitive version of str_replace(). Note: This function is binary-safe. Syntax: str_ireplace(find,replace,string,count); Parameter Description Required/Optional find Specify the value to find. Required replace Specify the value to replace. Required string Specify the string to be searched Required Count It is variable that...
1 min read
PHP string Function The string function is predefined function of PHP. It is the alias of strstr() function or can used to search for the first occurrence of a given string. Note: This function is case sensitive and binary-safe. Syntax: strchr(string,search,before_search); Parameter Description Required/Optional String Specify the string to search. Required Search Specify the string to...
1 min read
PHP Function PHP function is used to convert string value of ASSCII characters to hexadecimal value. Syntax: string bin2hex ( string $str ) Parameter Description Required/Optional string The string to be converted Required Example 1 <?php $str ="Hello World!"; echo "Your ASCII character is: ".$str; echo "<br>"."By using '' Method your hexadecimal value is: ".bin2hex($str); ?> Output: Your ASCII...
1 min read
PHP Hebrev() Function PHP is string function, which is used to convert Hebrew text from right to left or left to right visual text. Syntax: hebrev(string,maxcharline) ; Parameter Description Required/Optional string A Hebrew text. required maxcharline Specify maximum character for each line. optional Example 1 <?php echo hebrev("? ???? ?????"); ?> Output: ??????? ?????? ??? TopicPHP String ...
1 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India