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 - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

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

java - Reading data from multiple zip files and combining them to one -