I trim post value after form submitted, like this:
$value=trim($_POST['submit_value']);
So if I submit ' some_value '
, then it will become 'some_value'
PHP trim() works fine so far.
But recently, there is an DEL(ASCII code 127) character submitted and I don't know how to trim it.
$asd=DEL(ASCII code 127) character;
// I cannot copy, because stackoverflow remove it.
// it looks like space but it's not. trim() doesn't work.
echo ord($asd); //return 127
any ideas? many thanks!
btw, here is a way to type this character:
Unicode Character 'DELETE' (U+007F)
How to type in Microsoft Windows
I don't know under what condition will a user need to type this character when register his name