PHP string lcfirst() Function4 Sept 2024 | 1 min read 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.
Syntax:
Example 1Output: Before using lcfirst() function:PHP After using 'lcfirst()' function: pHP Example 2Output: Before using lcfirst() function: HELLO PHP After using 'lcfirst()' function: hELLO PHP Next TopicPHP String |
PHP string Function is an inbuilt string function of PHP, which is used to compare two strings. It is a locale based string comparison. It is important to notice that the comparison done by function is case-sensitive as strcmp(), which means it treats capital and...
2 min read
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
function in PHP The is an in-built function of PHP which is used to search the first occurrence of the string inside another string, and it returns rest of the string if the string is present. It is a binary-safe function (Binary safe function means...
3 min read
PHP string md5_file() Function PHP string md5_file() function is in-built important function. It is used to calculate the MD5 hash of a file. It uses the RSA Data Security. It returns the md5 hash on success, or FALSE on failure. Syntax: md5_file(file,raw); Parameter Description Required/Optional File Specify the file to be calculated. Required Raw Specify the Boolean...
1 min read
PHP String function The is one of the most popular functions of PHP, which is widely used to convert the string into uppercase. It takes a string as a parameter and converts all lowercase English character of that string to uppercase. Other characters such as...
2 min read
PHP string Function PHP function is predefined function. It is used formats number as a currency string. It returns a formatted version of number. It wraps the C library function strfmon() and often used with the setlocale() function. Note: This function does not work on windows...
1 min read
PHP Function PHP function is predefined string PHP function , which is used to decode a uuencoded string. It returns the decoded data as a string. Syntax: string convert_uudecode ( string $data ); Parameter Description Required/Optional string The uuencoded string to decode Required Example 1 <?php $str ="*:F%V851P;VEN=``` ` "; // javatpoint echo "Your Decode string is...
1 min read
PHP explode() is a string function, which splits a string by a string. In simple words, we can say that it breaks a string into an array. The explode() function has a "separator" parameter, which cannot contain an empty string, because it holds the original...
3 min read
PHP String Function The function is the in-built function of PHP. It is used to get numeric information. This function returns an array which contains local numeric and monetary formatting information. This function is a non-parameterized function, so we do not need to pass anything...
5 min read
PHP string Function PHP string is predefined function. It is used to convert first byte of string to a value between 0 and 255. It returns ASCII value. Syntax: int ord ( string $string ); Parameter Description Required/Optional string Specify string value required Example 1 <?php echo "Your Value is: A"."<br>"; echo "By using '' Function:".ord("A")."<br>"; ?> Output: Your Value...
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