PHP chr() Function4 Sept 2024 | 1 min read The PHP chr() function is used to generate a single byte string from a number. In another words we can say that it returns a character from specified ASCII value. Syntax:
Example 1Output: Your character is :52 By using 'chr()' function your value is: 4 Example 2Output: Your character is :42 By using 'chr()' function your value is: * Example 3Output: Your character is :0x52 By using 'chr()' function your value is: R Example 4Output: 2 + 2 = 4 Given above program in which the ASCII value of chr(43) is '+' and chr(61) is '=' converted . Next TopicPHP String |
PHP implode() is a string function, which joins the array elements in a string. It is a binary-safe function. In implode() function, parameters can be passed in any order. The implode() function works same as the join() function and returns a string created from the elements...
2 min read
PHP String Function The is an in-built string function of PHP. It is used to display the array values as a formatted string according to the format. The main purpose of this function is to display a formatted string. PHP 4 and above versions supports...
3 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
PHP string lcfirst() Function The lcfirst() is in-built PHP string function. It is used to convert the first character of a string to lowercase. In another words we can say that it make a string's first character lowercase. It returns the converted string. Following are the related functions. ucfirst()...
1 min read
PHP Function The function in inbuilt function of PHP. It is used to find the position of the last occurrence of a string. This function returns all characters from this position to the end of the string or FALSE if the character is not found. Note: The...
1 min read
PHP Function The is predefine function of PHP. It is used to find the position of the first occurrence of a string inside another string. Note: This function is case-insensitive and binary safe. Syntax: stripos(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. Example...
1 min read
PHP Function PHP function is important function, which is used to output one or more string. Note: The function is not actually a function, so there is no required to use parentheses. Syntax: int print ( string $arg ); Parameter Description Required/Optional string Specify one or more string to be sent output. Required Example...
1 min read
PHP string Function String comparison is one of the most common tasks in programming and development. is a string comparison function in PHP. It is a built-in function of PHP, which is case sensitive, means it treats capital and the small case separately. It is...
3 min read
PHP String Function The function is in-built function of PHP. It is used to access the individual elements of the locale categories. This function allows us to select any element specifically. Unlike the localeconv() function which returns all the local formatting information, function returns...
3 min read
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
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