note 95030 added to function.strlen

From: Date: Wed, 09 Dec 2009 21:22:58 +0000
Subject: note 95030 added to function.strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-163770@lists.php.net to get a copy of this message
To my opinion the 'strlen' function should only return the number of characters in a string. Nothing else. And it does, whether it counts ASCII characters or Unicode characters. A character is a character, pointing to a given position on an ASCII table or a UTF-8 table. Nothing more. If you would like to know, for whatever reason, the byte-length of a string, then you should use a differtent function. I am a newby in PHP scripting, so I did not find that function yet. (Should be something like 'bytelen()'?) ---- Server IP: 69.147.83.197 Probable Submitter: 84.27.216.99 ---- Manual Page -- http://www.php.net/manual/en/function.strlen.php Edit -- https://master.php.net/note/edit/95030 Del: integrated -- https://master.php.net/note/delete/95030/integrated Del: useless -- https://master.php.net/note/delete/95030/useless Del: bad code -- https://master.php.net/note/delete/95030/bad+code Del: spam -- https://master.php.net/note/delete/95030/spam Del: non-english -- https://master.php.net/note/delete/95030/non-english Del: in docs -- https://master.php.net/note/delete/95030/in+docs Del: other reasons-- https://master.php.net/note/delete/95030 Reject -- https://master.php.net/note/reject/95030 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163770) next »