Re: need help!!!!!
| From: | Jim Hunter | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: need help!!!!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21741@lists.php.net to get a copy of this message | ||
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@praticsistemas.com.br
rodrigo@praticsistemas.com.br