how to replace all special characters except underscore and period in PHP?
<?php $string="a quick borown fox jump over the lazy dog & ( jkl/)-ov"; echo $string = preg_replace('/[^a-zA-Z0-9_.]/', '-', strtolower($string)); ?>
by Basant | Feb 27, 2020 | PHP | 1 comment
<?php $string="a quick borown fox jump over the lazy dog & ( jkl/)-ov"; echo $string = preg_replace('/[^a-zA-Z0-9_.]/', '-', strtolower($string)); ?>
Extremely educational, look ahead to visiting again.