Peculiar activity with printf()

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
jefftanner
Forum Newbie
Posts: 7
Joined: Thu May 01, 2008 10:54 am

Peculiar activity with printf()

Post by jefftanner »

I am in a quandary about the following piece of PHP code.

Code: Select all

 
printf( "%s, %s \n", $endDate_Yesterday, $startdate_TryMedia );
printf( "%s, %s \n", $enddate_Yesterday, $startdate_TryMedia );
printf( "%s, %s \n", $endDate_Yesterday, $startdate_TryMedia );
 
The first and second printf(s) are outputting the first variable $enddate_Yesterday, but not the second.

Code: Select all

 
06/25/2008, 05/01/2005 
, 05/01/2005 
06/25/2008, 05/01/2005 
 
Ideas why this is occurring?

Thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Peculiar activity with printf()

Post by John Cartwright »

$enddate_Yesterday != $endDate_Yesterday
Post Reply