After reading a PHP related question (that already had an accepted answer), I wrote up a comment regarding OP's code, with some suggestions. Since the comment ended up way too long, I decided to post it as "answer", while making it as "comment".
A day later that post in was deleted for being "low quality". Which would make one wonder, what are those quality standards, that Perl and JavaScript use.
Review queue entry for the post in question and screenshot for sub-10k users.
Is there a guideline, that says, that these types of posts have to be deleted?