bradgrafelman wrote:Again, data is data... doesn't matter if it's an ASCII character that you can read or not - it's all the same.
Just as an FYI, AL-Kateb, the manual puts it like this:
A string is series of characters, therefore, a character is the same as a byte. That is, there are exactly 256 different characters possible.
Which isn't that well-phrased (it's more concerned about Unicode). But what it does say is that, in PHP, a string is a series of characters and character==byte. What is or isn't "text" doesn't enter into it.
So, pretty much like plain C then, where a string is just a series of bytes; except that unlike the functions in C's standard string library, PHP's string functions don't treat NUL as anything special.