Like:
Code: Select all
"\r\n" //Carriage return
"#" => html special char hash mark
"\x035" //I want an ascii equivalent of # somehow...Moderator: General Moderators
Code: Select all
"\r\n" //Carriage return
"#" => html special char hash mark
"\x035" //I want an ascii equivalent of # somehow...Code: Select all
$converted = preg_replace('/\&\#(\d+)\;/e', "chr(\\1)", $input_string);