can any1 tell me how to do salted hashing in php

Like the following:

function truehash($hashzzz) {
return hash('sha256','asdfedcg$#!@123lkjhg'.hash('whirlpool',$hashzzz).'1!q');
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.