Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2002091

Re: [PHP-DB] need help!!!!! From: Jim Hunter (jim <email protected>)
Date: 09/13/02

Try:
 
Function left($leftstring, $leftlength) {
    return(substr($leftstring, 0, $leftlength));
 
so call it:
 
left($var, 2);
 
 
 
Jim
 
-------Original Message-------
 
From: Rodrigo
Date: Friday, September 13, 2002 12:49:14
To: PHP
Subject: [PHP-DB] need help!!!!!
 
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>