php-db | 2002091
Date: 09/13/02
- Next message: Steve Cayford: "Re: [PHP-DB] need help!!!!!"
- Previous message: Jim Hunter: "Re: [PHP-DB] need help!!!!!"
- In reply to: Rodrigo: "[PHP-DB] need help!!!!!"
- Next in thread: Steve Cayford: "Re: [PHP-DB] need help!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
> rodrigo <email protected>
>
>
>
+---------------------------------+
|Rafael Mueller |
|Computação - UFSC |
|Linux User #271799 |
|UIN #97699276 |
|Dividir para conquistar! |
+---------------------------------+
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Steve Cayford: "Re: [PHP-DB] need help!!!!!"
- Previous message: Jim Hunter: "Re: [PHP-DB] need help!!!!!"
- In reply to: Rodrigo: "[PHP-DB] need help!!!!!"
- Next in thread: Steve Cayford: "Re: [PHP-DB] need help!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

