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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -