RE: [PHP] Quick help
| From: | Maxim Maletsky | Date: | Wed, 01 Nov 2000 03:39:32 +0000 |
| Subject: | RE: [PHP] Quick help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23074@lists.php.net to get a copy of this message | ||
$Srting = 'Hello World';
$SubString = subsrt($Srting, 0, 4);
echo $SubString;
# returns:
Hell
does this help?
-----Original Message-----
From: Curtis, Lorenzo [mailto:Lorenzo.Curtis@prexar.com]
Sent: Wednesday, November 01, 2000 11:48 AM
To: PHP General Help (E-mail)
Subject: [PHP] Quick help
Can anyone tell me how to read the first three characters (numbers) of a
variable?
I want to read only the first three numbers from a string of numbers all
saved in a mySQL text field
with no delimiters.
-Lorenzo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net