Is the string md5?
Is this reliable?
PHP Code:
function isValidMd5($md5 =”)
{
return preg_match(‘/^[a-f0-9]{32}$/’, $md5);
}
echo isValidMd5(‘5d41402abc4b2a76b9719d911017c592’);
Original post by English Breakfast Tea
Is this reliable?
PHP Code:
function isValidMd5($md5 =”)
{
return preg_match(‘/^[a-f0-9]{32}$/’, $md5);
}
echo isValidMd5(‘5d41402abc4b2a76b9719d911017c592’);
Original post by English Breakfast Tea
Leave a Reply
You must be logged in to post a comment.