note 126043 added to language.types.string
| From: | alain dot fouere at wanadoo dot fr | Date: | Tue, 27 Apr 2021 07:32:22 +0000 |
| Subject: | note 126043 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216329@lists.php.net to get a copy of this message | ||
I've been a programmer in assembler(8086), GwBasic, C (++), Java (bytecode), etc. for a long
time. I read in the present page :
"Strings
A string is series of characters, where a character is the same as a byte.
This means that PHP only supports a 256-character set, ...
.....
Details of the String Type
The string in PHP is implemented as an array of bytes and an integer indicating the length of the
buffer.
.....
"
Therefore I'm quite sure that a PHP string (a Zend string) IS NOT an array() i.e. a map with
keys and values, but an "array as in Pascal"(size indicated, no ending NULL char) !
Hey guys, may you clearly and precisely explain this here ?
Sincerely. Alain.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 109.213.153.112)
----
Manual Page -- https://php.net/manual/en/language.types.string.php
Edit -- https://main.php.net/note/edit/126043
Del: integrated -- https://main.php.net/note/delete/126043/integrated
Del: useless -- https://main.php.net/note/delete/126043/useless
Del: bad code -- https://main.php.net/note/delete/126043/bad+code
Del: spam -- https://main.php.net/note/delete/126043/spam
Del: non-english -- https://main.php.net/note/delete/126043/non-english
Del: in docs -- https://main.php.net/note/delete/126043/in+docs
Del: other reasons-- https://main.php.net/note/delete/126043
Reject -- https://main.php.net/note/reject/126043
Search -- https://main.php.net/manage/user-notes.php