I'm looking for a function that encodes spaces, tabs etc into html characters
Eg take the collection of strings:
Whats up?&^5@#
number pie word
1 3 hi
2 4 no
which I process:
$outString="";
for($i=0;$i<count($strArr);$i++){
$outString.= somefunc($strArr[$i]);//what should somefunc be?
}
have you seen html entities or html special chars ?