- str_replace: documentation ( source)
- trim: documentation ( source)
- html_entity_decode: documentation ( source)
<?php
$_REQUEST['value'] = '77–777';
$value = $_REQUEST['value'];
$value = str_replace(chr(226), '-', trim($value));
$value = html_entity_decode($value);
echo $value;