PHPEdit.net Community
   
1 2 3 4
Tutorials Tips Pasties Code Snippets
 

Home > Code snippets > PHP > Strings

Code Snippets from Category Strings

Remove Invalid XML Characters

When you are writing out an XML document there are certain characters that are not allowed in the document. If these characters exist, you will be unable to parse the document as per the XML specification.What this function will do is take a string, remove the invalid characters and then return the string back to you to insert into an XML document.

human_bytes

Displays bytes in the nearest manageable unit

Got one? Create it now.

View the most popular snippets.

Subscribe to comments Want to be up-to-date? Subscribe to snippets in your favorite feed reader.

 
PHPEdit User Community, © 2008 WaterProof SARL
Powered by PHPEdit