PHP string str_rot13() function4 Sept 2024 | 1 min read The str_rot13() is in-built PHP function. It is used to perform the ROT12 encoding on string. This function encodes shifts every letter 13 place in the alphabet while numeric and non0alphabeticall characters remains untouched. Note: This function encodes or decodes the data by same function.Syntax:
Example 1Output: Before using str_rot13() function:Hello PHP Before using str_rot13() function:Uryyb CUC Example 2Output: Before using str_rot13() function:Uryyb CUC After using str_rot13() function:Hello PHP Example 3Output: Both string is is Equall: Hello PHP = Hello PHP Reference: http://php.net/manual/en/function.str-rot13.phpNext TopicPHP String |
PHP string function The is an in-built function of PHP, which is used to add a backslash before some meta characters in the string. It returns the string by adding the backslash before every meta characters. It avoids SQL injections attacks of our database. The...
2 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 String Function The is a built-in function of PHP, which is used to extract a part of a string. The function returns a part of a string specified by the start and length parameter. PHP 4 and above versions support this function. Syntax The syntax...
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 Function The is predefine string function of PHP. It is used to compare two strings. This function is binary-safe, case-sensitive and similar to strcmp() function but strcmp() have no the length parameter. The strncmp () function is often used in programming and web development...
1 min read
PHP Function PHP function is used to write a formatted string to a stream. In another words we can say that this function format string to a specified output stream( file or database). Syntax: fprintf(stream,format,arg1,arg2,arg++) Parameter Description Required/Optional stream Specify string where to write /output the string Required Format Specify the string. Required arg1 Specify the argument to...
2 min read
PHP str_replace() function The str_replace() function is a case-sensitive, built-in function of PHP which replaces some character of the string with other characters. It is used to replace all the occurrences of the search string with the replacement string. Syntax The syntax of the str_replace() function is given below,...
3 min read
PHP string Function The function is predefined PHP string function. It is used to calculate the SHA-1 hash of a file. It uses he US secure Hash Algorithm 1 and calculate the ha1 hash US secure Hash Algorithm 1. The hash is a 40 character hexadecimal...
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 string function The is in-built function of PHP. It is used to randomly shuffle all the character of a string. One Permutation of all possible is created. Note: This function "" does not generate cryptographically secure value. If we want to cryptographically secure then use...
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