I saw this answer to a PHP question. The answer should work, but the post seems a lot like a "code only" answer.
First, I was starting editing the post (wanted to add more explanations and add a link to the formal recommended documentation - which is not changing the answer meaning and complied with help-center) - but then I noticed the OP is "new contributor" (first answer for that user) and I thought, maybe it was best to comment it, so the OP will do that by himself/herself and learn for the next answer he posts.
Should I edit the answer instead? Or was commenting the better action?
I saw this question, but I am talking specifically about the new contributor case.