RE: [PHP] Charecter by position
| From: | o dot cook at etoncollege dot org dot uk | Date: | Wed, 22 Nov 2000 15:58:32 +0000 |
| Subject: | RE: [PHP] Charecter by position | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26645@lists.php.net to get a copy of this message | ||
Looking at http://www.php.net/manual/function.substr.php
(the MANUAL):
$string = "teststring";
$new_string = substr($string, 2, 1); # $new_string is now 's'
Ollie
> -----Original Message-----
> From: Mike [mailto:mpeloso@princeton.edu]
> Sent: 22 November 2000 15:55
> To: php-general@lists.php.net
> Subject: [PHP] Charecter by position
>
>
> How do I return a charecter by its position in a string
> Example: I want the third charecter from a string
> Thanks
> mpeloso@princeton.edu
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>