mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Removed deprecated ereg_replace
This commit is contained in:
@@ -50,7 +50,7 @@ include_once(dirname(__FILE__).'/../db.inc.php');
|
||||
*/
|
||||
function only_numbers($str)
|
||||
{
|
||||
return ereg_replace('[^0-9]*','',$str);
|
||||
return preg_replace("/[^0-9]/", "",$str);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user