Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2002091

Re: [PHP-DB] need help!!!!! From: Edwin Robertson (tm <email protected>)
Date: 09/13/02

$newvar = substr($var,0,2);

The would do what your looking for. 0 being the character to start at,
2 being how many characters after that to grab.

        - Edwin

On Fri, 2002-09-13 at 15:47, Rodrigo wrote:
> Hi everybody........
>
> if i have a var that is...
>
> $var = "01 - Rodrigo";
>
> is there a way that i can only get the first two letters???
>
> for example... 01
>
>
> i´m new in php.....thanks a lot
> Brazilian dude
>
> --------------------------------------------------------------------------------
>
> Equipe Pratic Sistemas
> Rodrigo Corrêa
> Fone: (14) 441-1700
> suporte <email protected>
> rodrigo <email protected>
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php