Date: 04/30/00
- Next message: Ankur Verma: "Re: [PHP3] Remove last character."
- Previous message: Alfred Perlstein: "Re: [PHP3] [PHP]How a page can call itself with new values?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] Re: Remove last character."
- Reply: Rasmus Lerdorf: "Re: [PHP3] Re: Remove last character."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Ankur Verma: "Re: [PHP3] Remove last character."
- Previous message: Alfred Perlstein: "Re: [PHP3] [PHP]How a page can call itself with new values?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] Re: Remove last character."
- Reply: Rasmus Lerdorf: "Re: [PHP3] Re: Remove last character."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

