Re: need help!!!!!
| From: | Rafael Mueller | Date: | Fri, 13 Sep 2002 19:53:23 +0000 |
| Subject: | Re: need help!!!!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21742@lists.php.net to get a copy of this message | ||
use substr
example
$var = "01 - Rodrigo";
$var2 = substr($var,0,2);
echo $var2; //result 01
On Fri, 13 Sep 2002, 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
>
>
>
+---------------------------------+
|Rafael Mueller |
|Computação - UFSC |
|Linux User #271799 |
|UIN #97699276 |
|Dividir para conquistar! |
+---------------------------------+