PHP

PHP function str_repeat() – Repeat a string

The str_repeat() function is used to repeat a string, a specified number of times. This function was introduced in PHP4.…

PHP function str_ireplace() – Case-insensitive version of str_replace()

The str_ireplace() function is used to replace some case insensitive characters in a string. This function was introduced in PHP5.…

PHP function convert_cyr_string() – Convert from one Cyrillic character set to another

The convert_cyr_string() function is used to convert a string from one Cyrillic character-set to another set. It was introduced in…

PHP function chunk_split() – Split a string into smaller chunks

The chunk_split() function divides a string into a sequence of small fragments. chunk_split() adds the character(s) specified in chunk_ending every…

PHP function chr() – Generate a single-byte string from a number

The chr() function returns a single character string from an ASCII value that is already specified. If the integer provided…

PHP function chop() – Alias of rtrim()

The chop() function is the pseudonym of rtrim(). This function was introduced in PHP3. chop() removes all trailing whitespace characters…

PHP function bin2hex – Convert binary data into hexadecimal representation

The bin2hex() function converts a string of ASCII characters to hexadecimal values. This was introduced in PHP3. This function Converts…

PHP decbin function – Decimal to binary

The PHP function decbin() converts a decimal number into a string containing its binary representation. The largest decimal value that…

htaccess Cheatsheet

Here is a simple cheatsheet for the .htaccess file: Enable Directory Browsing Options +Indexes ## block a few types of…

PHP cos function – Cosine

Description The cos() function calculates the cosine value of the number provided as its only parameter. The parameter should be…