can any one help?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
syno
Forum Newbie
Posts: 9
Joined: Wed Oct 15, 2003 11:22 am

can any one help?

Post by syno »

hi
$date2 = date("m");

echo $date2 gives me the value of 01 if ran in jan

what i need to do is add to that. for example

$date3 = $date2 +1;

hoping that when i echo $date3; it will give me the value of 03 but it only gives me the value of 3 and i need it feed back 03 not just 3

any one help? thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

date('m',strtotime('+1 month'));
syno
Forum Newbie
Posts: 9
Joined: Wed Oct 15, 2003 11:22 am

Post by syno »

thanks !!!
Post Reply