wtg21.org wrote:i dont think so
Are you sure? If you can it could simplify things.
wtg21.org wrote:i just know allowed characters but ... what i dont know is other characters that might be written in tat textarea ...
That is okay, since we can replace everything that is not among the allowed characters with an empty string. For example:
<?php
$info = array (
'354624375427257',
'43545fdg45435435',
'432546265265,,',
'35454365243643245');
$allowed = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
$disallowed_pattern = '/[^' . preg_quote(implode('', $allowed)) . ']/';
$info = preg_replace($disallowed_pattern, '', $info);
print_r($info);