I have an HTML which posts a form to a PHP page. The PHP page encodes the password from the form using md5() function. And then I tried to save this MD5 code into a file using fwrite() function.
Here the error occures. fwrite() only accepts string parameter, but the return value of md5() is a number data type.
Can you tell me how can I convert a number to string, or string to number in PHP? (For general purpose. Not for only this problem.)