Jump to content

[SOLVED] $function = printf() ?


Moron

Recommended Posts

How do I do this? I don't want to PRINTF() something right here and now, but I want to format it so I can use substr() on it later.

 

$endingdate = printf ("%08d", $RESULT['PSTUB5']);

 

I want to zero-fill this field to make it eight characters (if the date is 1152009, I want it to be 01152009, etc...)

 

 

Link to comment
https://forums.phpfreaks.com/topic/140689-solved-function-printf/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.