Re: Math Inside Strings

From: Date: Wed, 29 Aug 2001 20:04:47 +0000
Subject: Re: Math Inside Strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65095@lists.php.net to get a copy of this message
echo '<input type="hidden" name="currentPosition" value="' . $currentPosition+1 .'">'; use the . to concatentate strings with exressions jack Kevin P wrote: > echo "<input type='hidden' name='currentPosition' > value='$currentPosition+1'>"; > > can anyone tell me how to get this to stop printing: > > <input type='hidden' name='currentPosition' value='0+1'> > > -- > 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

« previous php.general (#65095) next »