Using intval to return numeric value at a certain length?
Posted: Mon Aug 17, 2009 3:46 pm
I'm sure there's a simple way to do this, I'm guessing by using intval.
I need to take the value of a variable, e.g. '42', and turn it into a length of 5 characters before outputting to csv. e.g. '00042'
I need to take the value of a variable, e.g. '42', and turn it into a length of 5 characters before outputting to csv. e.g. '00042'