PHP crypt() Function

The crypt() function returns a hashed string using DES, Blowfish, or MD5 algorithms. This function behaves different on different operating systems. PHP checks what algorithms are available and what algorithms to use when it is installed. Syntax crypt(str,salt)

Read MorePHP crypt() Function

PHP crc32() Function

The crc32() function generates a 32-bit cyclic redundancy code (CRC) for a string. The function is generally used to validate the integrity of data being transmitted. Example <?php $str = crc32(“Hello World!”); printf(“%u\n”,$str); ?> Output 472456355

Read MorePHP crc32() Function

PHP chr() Function

The chr() function is used to get a single character string from the specified ASCII value. Return values: A one-character string containing the character specified by ascii _code Example <?php echo chr(52) . “<br>”; // Decimal value echo chr(052) .…

Read MorePHP chr() Function

PHP chop() Function

The chop() function is used to remove the whitespaces and other predefined characters from the right side of a string. This function is an alias of rtrim() function. Example <?php $str = “Hello World!”; echo $str . “<br>”; echo chop($str,”World!”);…

Read MorePHP chop() Function

PHP addslashes() Function

The addslashes() function is used to add backslashes in front of the characters that need to be quoted. The predefined characters are single quote (‘), double quote(“), backslash(\) and NULL (the NULL byte). Example <?php $str = addslashes(‘What does “hello”…

Read MorePHP addslashes() Function