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

substr($str,0,2)

On Sat, 6 Jan 2001, Samuel Desramont wrote:

> Hi,
>
> 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) ?
>
> Many thanks,
> --
> Samuel Desramont
> PageMédia
> ZI du château - rue Albert Einstein
> BP 17 - 62220 Carvin
> Tel: +33 (0)3 21 08 91 91 Fax: +33 (0)3 21 08 91 92
> E-mail: desramont <email protected>
>
>
>
> --
> 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>
>

-- 
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>