The question was basically, "how can I make PHP inheritance pretend like it's Javascript inheritance, at least as far as properties are concerned?"

I came across this question via a Google search (because I was trying to do the same thing) and found the question and the OP's answer quite useful. Was this an "earlier edit" story or am I missing something about what makes a legitimate question?

  • 1
    Probably because Stack Overflow is not a code translation service.
    – Oded
    May 14 '12 at 11:20
  • @Oded, Did you read the question? This is not a "make my js script work in php" question. It's a straightforward question about implementing instance based inheritance in a language that doesn't do it automatically.
    – mmdanziger
    May 14 '12 at 11:21
  • It was closed by five ordinary users in November 2011. Finding out why they all voted to close will be well nigh impossible.
    – ChrisF Mod
    May 14 '12 at 11:27
  • 1
    @ChrisF, isn't the whole point of having a detailed meta site and FAQs/rules that the unique properties of the question cause it to be closed transparently and reproducibly? If it's dependent on the inscrutable whims of a handful of arbitrary users, then we're much less advanced than I thought we were.
    – mmdanziger
    May 14 '12 at 11:33
  • 1
    The questions isn't very clear. 1. inherit is used wrongfully. 2. It's basically: This is my code. How can I change PHP so my code does want I want it to?
    – Dennis
    May 14 '12 at 11:35
  • @mmdanziger - yes, but you'd need to contact the 5 users who voted to close and see if they could remember why they voted the way they did 6 months later. I know I wouldn't remember.
    – ChrisF Mod
    May 14 '12 at 11:37
  • @Dennis, thank you for addressing the content of the question. Though poorly phrased, the question is not really ambiguous. And the question class of "I'm trying to do something that my language doesn't really do--how can I force it?" is vast, answerable and exceedingly useful to have answers for. So I don't see why that would disqualify it.
    – mmdanziger
    May 14 '12 at 13:13
  • @mmdanziger: I didn't understand the question at all before reading the self-answer the OP provided. All he wanted to do was access the parent object, and he should have told so in his question. Looks like more people agreed that the question was bad, since is has been deleted now.
    – Dennis
    May 14 '12 at 13:18

Looking at profiles more on that below of five users who voted to close, I see that their score in tag is 7k, 349, 886, 2K, and 282 respectively.

  • Score is the number of upvotes minus downotes they've got for asking and answering PHP questions.

Everyone of those who voted to close has at least one badge in php tag, totally they've got 5 bronze badges, 3 silver ones and 2 golden.

  • Tag badges are awarded as a recognition of certain achievement in answering, eg golden badge means

    Earned 1000 upvotes for at least 200 answers in php tag.

For comparison, asker of the question has php tag score 36 and no badges in this tag.

Taking above into account, I think how dare you ask? that most likely, you're missing something about what makes a legitimate question in php tag.

Looking at profiles of users who voted to close - these are displayed in closed questions like at below screen shot:


  • 1
    @Timjadarnel27 thanks! I tested that and you're indeed right. I wiped out the "privileges stuff" off the answer
    – gnat
    May 14 '12 at 12:54

Not the answer you're looking for? Browse other questions tagged .