[PHP3] Re: Remove last character. From: Ankur Verma (ankurv <email protected>)
Date: 04/30/00

try

$var="Hello";
$str=substr("$var,0, count($var)-1);

Ankur Verma
<ankurv <email protected>>

GoYogi.com Internet Pvt. Ltd
New Delhi

------------------------------------------------------------------
Feel Proud to be a Yogi!
www.goyogi.com : India's best news, email, search, directories,
cricket and lot's more......!

OPERATOR! Trace this call and tell me where I am.

-----Original Message-----
From: CL Yong <clyong <email protected>>
To: PHP Mail List <php3 <email protected>>
Date: Saturday, April 29, 2000 12:58 PM
Subject: Remove last character.

>Hi,
>How to remove the last character in PHP? Something like "chop" in Perl .
>example : "Hello" become to "Hell"
>
>Thanks
>
>

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>