Answers for "php print special charactes"

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
0

html special characters php

$string = "This is testing message "ETC" ";
htmlspecialchars($string, ENT_COMPAT)
Posted by: Guest on January-06-2021

Code answers related to "php print special charactes"

Browse Popular Code Answers by Language