For testing purposes I need strings such as:
"test\x00string"
I would like to loop over the control characters (00-1F) and generate the strings automatically so I don't have to clutter my code with 31 lines like this but don't know how to realize that in php.
Also for testing malformed utf I might want to insert other byte sequences into strings.
chr()? php.net/manual/en/function.chr.php