1

If it were c++,this can be achieved by template,but as we know PHP is written in c,how's this kind of data struct implemented without template?

Gordon
  • 312,688
  • 75
  • 539
  • 559
cpuer
  • 7,413
  • 14
  • 35
  • 39
  • 3
    maybe its just me, but this question makes little sense. –  May 31 '11 at 04:20
  • php arrays can take any arbitrary content, a templated vector in c++ can only hold many objects of the same type (but you can create different vectors of course) – knittl May 31 '11 at 06:30

1 Answers1