php - Parse error: syntax error, unexpected 'return' (T_RETURN) error -
function adddate( $date, $adday ) { list( $year, $month, $day ) = year return date( "y-m-d", mktime( 0, 0, 0, $month, $day + $adday, $year ) ); }
cant see error
function adddate( $date, $adday ) { list( $year, $month, $day ) = $date; return date( "y-m-d", mktime( 0, 0, 0, $month, $day + $adday, $year ) ); }
this should closer looking for. if clarify question can clarify answer.
Comments
Post a Comment