As in code
$query = preg_replace('![^\w\d\-\]*!', '', $query); set the character '/' so that it also recognizes and reads it? For example, I need the value of $ query = 'WT / KSK.80 / 1' to keep their slashes after processing, now they disappear
As in code
$query = preg_replace('![^\w\d\-\]*!', '', $query); set the character '/' so that it also recognizes and reads it? For example, I need the value of $ query = 'WT / KSK.80 / 1' to keep their slashes after processing, now they disappear
Try
$query = preg_replace('![^\/\w\d\-\]*!', '', $query); Source: https://ru.stackoverflow.com/questions/540021/
All Articles
$query = preg_replace('![^\/\w\d\-]*!', '', $query);- Bogdan Gudyma