Answers for "remove special characters from string except @ in php"

PHP
0

determine special characters in php

<?php

$string = 'foo';

if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $string))
{
    // one or more of the 'special characters' found in $string
}
Posted by: Guest on October-13-2020
5

php remove last character from string

$hell = substr('hello', 0, -1);
Posted by: Guest on November-04-2019

Code answers related to "remove special characters from string except @ in php"

Browse Popular Code Answers by Language