Convert string to sha512 in PHP

You can convert string to sha512 hash value in PHP. Hashing functions take some data as input and produce an output (called hash digest) of fixed length for that input data.