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

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -