PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
To add to what has already been said, when in the context of an object instance, you need to use $this-> to access instance variables (ie: $this->nombre). Just as you would use $persona->nombre to access that variable from the outer scope (if it were a public property, that is)