--MS_Mac_OE_3066812333_145812_MIME_Part
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
When I want to subtract a day from a date, and pass the date to a function
that will do the subtraction and then return the new value, so why does php
sometimes subtract the year, instead of the day?
I say sometimes, because I have other identical functions that work
perfectly. Does php not pass the data type along with the variable?
function subtract_a_day($datetoget)
{
$datetoget=($datetoget-1);
return_date($datetoget);
}
--MS_Mac_OE_3066812333_145812_MIME_Part--
- Re: [PHP-DB] Date Help Faye Keesic
- Re: [PHP-DB] Date Help Richard S. Crawford
- [PHP-DB] Oracle Function Calls Richard S. Crawford
- Re: [PHP-DB] Oracle Function Calls Joe Brown
- [PHP-DB] date help Srinivasan Ranganathan
- Re: [PHP-DB] date help Andreas D. Landmark
- Re: [PHP-DB] date help Jason G.