[Solved] Parse error: syntax error, unexpected ‘return’ (T_RETURN) error [closed]


function addDate( $Date, $adday ) {
    list( $year, $month, $day ) = $Date; 
    return date( "Y-m-d", mktime( 0, 0, 0, $month, $day + $adday, $year ) );
}

This should be closer to what you are looking for. If you clarify your question I can clarify my answer.

0

solved Parse error: syntax error, unexpected ‘return’ (T_RETURN) error [closed]