Generate SHA-224 Hash

SHA-224 is a cryptographic hash function that accepts a string of any length and returns a 224-bit fixed-length digest value, commonly represented as a sequence of 56 hexadecimal digits. SHA-224...

Get Extension of File Path

A file extension is a suffix at the end of a filename which specifies the file type. For example, .gz is the extension of the filename archived.tar.gz. Programming languages provides...
Using match Expression in PHP 8.0

Using match Expression in PHP 8.0

PHP has the switch statement that can be used to execute different blocks of code based on different cases. Since PHP 8.0, we can use the match expression that is...