<?php function strToHex($string) { $hex=''; for ($i=0; $i < strlen($string); $i++) { $hex .= dechex(ord($string[$i])); } return $hex; } echo strToHex('moron123') . '---' . dechex('moron123');
You have javascript disabled. You will not be able to edit any code.