从PHP返回哈希

Is there any way to return the hash from PHP to an Excel spreadsheet?. The call to this method would be done from a cell of an Excel spreadsheet

<?php

    $user = $_POST["user"];
    $pwd = $_POST["pass"];

    function PleaseNow($user, $pwd)
    {
        $salt = "\$5\$rounds=5000\$" . "something" . $user . "\$";
        return crypt($pwd, $salt);

    }
    echo PleaseNow($user, $pwd);

?>