Hi,

"Boget, Chris" wrote:

> I have 2 values.  The first is a constant while the second is not.

Is the first value a numerical value (real/integer?) or a string value?

If it is numerical, then one of the things you could do for using a
numerical value of (say) less than 100 could be:

$finalVar = ($var2 * 10) + $var2;

This is one of the simplest things you could do and meant only as a
rough example. A faster way would be to right-shift by 4 (if that can be
done in PHP) instead of multiplying by 10. This well essentially
multiply the number by 16.

I am relatively new to PHP, so the syntax I have used may not be
correct. Sorry about that.

Does this come anywhere close to what you would like to do?

--
Regards,
Harshdeep Singh Jawanda.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to