Re: [PHP-DEV] Very Simple for you !!! Getting part of a string From: André Langhorst (waldschrott <email protected>)
Date: 01/06/01

> I'd like to get the first two chars of the following string :
> 12:23:34|12-12-00
>
> Which function do I have to use to get 12 (the first two chars) ?

This is a developer list for development purposes only.
If you´ve general questions regarding use, installation and
configuration of PHP, please contact php-general <email protected> or
subscribe at php-general-subscribe <email protected>

The fastest way I guess is using $s[0].$s[1] (yes, it works with strings)

andré

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>