Text¶
Text refers to data that is human-readable and composed of characters, such as letters, numbers, punctuation, according to a specific encoding, such as ASCII or UTF-8.
Text isn’t a built-in data type or a standard term. However, text generally refers to strings, even though PHP strings are able to manipulate text and binary data, and even some text are multi-bytes, leading to binary characters.
It is also used in the context of files, where text files are translated, while binary files are read as is, without any transformation.
In security, plain text refers to data that is not protected by cryptography and may be directly read.
Text and binary are also mentioned in database, where columns may be text, with an extra set of functions, or binary, where the whole data is treated as non-modifiable.
Related : fopen(), String, Multi-byte, Plain Text, Rich Text, JavaScript Object Notation (JSON), Parquet, Token Oriented Object Notation (TOON)