Page 1 of 1

Peculiar activity with printf()

Posted: Thu Jun 26, 2008 12:32 pm
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

Re: Peculiar activity with printf()

Posted: Thu Jun 26, 2008 12:37 pm
by John Cartwright
$enddate_Yesterday != $endDate_Yesterday