PDA

Click to See Complete Forum and Search --> : Format a string


MidgetsBro
Aug 4th, 2002, 01:42 AM
Does anyone know how to format a string in PHP like you can in VB?

Format ("16250", "0,000")

would return 16,250 in VB, but can't figure out the printf function in PHP.

Thanks

MidgetsBro
Aug 4th, 2002, 01:45 AM
n/m. I found the number_format function on the PHP site. Just had to try a different search query.