note 60726 deleted from function.substr by bobby
| From: | bobby@php.net | Date: | Thu, 14 Sep 2006 17:48:15 +0000 |
| Subject: | note 60726 deleted from function.substr by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117186@lists.php.net to get a copy of this message | ||
Note Submitter: Matt Mangels
----
To felipe, wouldn't the following be easier (assuming you even wanted a charAt function in the
first place, because you can use $string{$number}):
<?php
function charAt($string, $num) {
return $string{$num};
|
?>