note 87265 added to function.substr
| From: | BinuchandranE at osu1 dot php dot net | Date: | Thu, 27 Nov 2008 05:19:05 +0000 |
| Subject: | note 87265 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147019@lists.php.net to get a copy of this message | ||
/**
* Get all characters from a string
**/
$string = "This is an example string";
for($i = 0; $i <= strlen($string); $i++)
{
$char = substr($string, $i, 1);
echo $char . "<br />";
}
----
Server IP: 59.162.86.33
Probable Submitter: 122.166.42.64
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/87265
Del: integrated -- https://master.php.net/note/delete/87265/integrated
Del: useless -- https://master.php.net/note/delete/87265/useless
Del: bad code -- https://master.php.net/note/delete/87265/bad+code
Del: spam -- https://master.php.net/note/delete/87265/spam
Del: non-english -- https://master.php.net/note/delete/87265/non-english
Del: in docs -- https://master.php.net/note/delete/87265/in+docs
Del: other reasons-- https://master.php.net/note/delete/87265
Reject -- https://master.php.net/note/reject/87265
Search -- https://master.php.net/manage/user-notes.php