[PHP] RE: setting member variables out of class

2001-11-01 Thread Tim Ward
1. $telefono is an array (as has already been pointed out) so you need to reference an element 2. you're never actually setting the property in the constructor, your constructor lines should be: $this->telefono = array("Teléfono","Phone"); etc. Tim -

[PHP] Re: setting member variables out of class

2001-10-31 Thread Mike Frazer
I believe you would be getting a number echoed to the screen or dumpfile, but you want the values, correct? $telefono is declared as an array. Calling an echo statement on an array won't give you the values of the array elements. In order to have them all printed to screen, try: foreach ($tele