This is the code I have been using
$html_special_chars_arr_char = array( 0 =>"/≥/", 1 => "/≤/",2 => "/>/" ,3 => "/</");
$html_special_char_arr_char_code = array( 0 => "≥", 1 => "&le",2 => ">" ,3 => "<");
$purpose_summary = preg_replace($html_special_chars_arr_char, $html_special_chars_arr_char_code, $xml->brief_summary->textblock);
I am trying to replace the special utf-8 characters but php can't understand multi-byte characters in a string from utf-8 apparently
What I am tryign to do is replace greater than or equal to signs with ≥
Any help would be appreciated.
$html_special_chars_arr_char = array( 0 =>"/≥/", 1 => "/≤/",2 => "/>/" ,3 => "/</");
$html_special_char_arr_char_code = array( 0 => "≥", 1 => "&le",2 => ">" ,3 => "<");
$purpose_summary = preg_replace($html_special_chars_arr_char, $html_special_chars_arr_char_code, $xml->brief_summary->textblock);
I am trying to replace the special utf-8 characters but php can't understand multi-byte characters in a string from utf-8 apparently
What I am tryign to do is replace greater than or equal to signs with ≥
Any help would be appreciated.