title: How can I remove the NULL character from string
body: <p>I have a PHP variable that contains a string which represents an XML structure. This string contains ilegal characters that dont let me build a new SimpleXMLElement object from the string. I dont have a way to ask the source of the content to modify their response, so I need to execute some cleaning on this string before I create a SimpleXMLElement object. </p>
  
  <p>I believe the character causing the problem is a &#x0; (0x00 (00) HEX) character, and its located within one of the Text Nodes of this string XML.</p>
  
  <p>What is the best way to remove this character or other characters that could break the SimpleXMLElement object.</p>