echo vs output variable [closed]

I believe this topic was addressed quite thoroughly here. I might add that within the WordPress community it is common syntax practice to default to echoing tags with an option or alternative/interior function to return the result instead. This I believe is driven by the level of code experience the average user within WordPress has and understanding a simple tag structure is “easier” than string concatenation of a php variable. The goal of extensibiltiy also drives this mentality by providing modular that can be “dropped” into a template in a similar vien of add_action.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)