} /* SC_TH_END:4.5.3:1ffe1c48 */ Php Archives - Page 3 of 4 - Gpkumar.com

Php

How to convert a string to uppercase in PHP

The strtoupper() function is used to converts a string to uppercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax string –…

How to convert a string to lowercase in PHP

The strtolower() function is used to converts a string to lowercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax: string –…

How to combine two strings in PHP

We can use the PHP concatenation operator (.) to join or combine two strings together in PHP. This operator is exactly designed for strings. There are two string operators :…

How to compare two strings in PHP

strcmp() function is used to compare two strings in php. This function is case-sensitive and binary-safe. If we need case-insensitive comparison, we can use the strcasecmp() function. Syntax string1 – This parameter…

How to append a string in PHP

There’s no exact function to append a string in PHP. But PHP concatenation assignment operator (.=) is used to append a string with another string. There are two string operators : Concatenation operator (‘.’) – Concatenation of…

How to prepend a string in PHP

There’s no exact function to prepend a string in PHP. But PHP concatenation operator (.) is used to returns the concatenation of its left and right arguments. There are two…
back to top