I have called hash function in my code like (php version 5.2.14 )
$username =hash("sha256",trim($_POST['username']));
$password =hash("sha256",trim($_POST['password']));
but I got error like Call to undefined function hash() in /var/www/site/ What to do ?