Page 1 of 1

string assignment

Posted: Tue Oct 11, 2005 8:08 am
by dude81
Hi,
How do I declare string

Code: Select all

$day="00
It assigns it as 0 only.
I need two zeroes there :(

Posted: Tue Oct 11, 2005 8:15 am
by feyd
it'd be your usage that'd make it one zero over two... If you're using it in math, it'll be converted to a number, thus losing the leading zero.