Re: need help!!!!!
| From: | Edwin Robertson | Date: | Fri, 13 Sep 2002 19:52:30 +0000 |
| Subject: | Re: need help!!!!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21740@lists.php.net to get a copy of this message | ||
$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@praticsistemas.com.br
> rodrigo@praticsistemas.com.br
>
>