Re: string

From: Date: Mon, 17 Jun 2002 13:41:21 +0000
Subject: Re: string
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-102508@lists.php.net to get a copy of this message
Actually this will not work. As .= appends (which would give you "80" rather then "08"), what you want is: $productid = "0" . $productid; Adam Voigt adam.voigt@cryptocomm.com On Mon, 2002-06-17 at 09:29, Sameh Ghane wrote: > Le (On) Mon, Jun 17, 2002 at 02:25:58PM +0100, Phil Reid ecrivit (wrote): > > > > For example; > > > > '$productid' is passed into the script with the value 8. How do I > > combine this so that $productid becomes 08? > > $productid .= "0"; > > should do the trick ;) > > -- > Sameh > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#102508) next »