Welcome Guest, Not a member yet? Register   Sign In
Help with object values

Hi! I had never worked with PHP with Arrays and Objects, I'm a little bit "lost" in values and how to get them. So, I have:

function name ()
  $data['name'] = 'Rubia';
  $data['last_name'] = 'Gardini';


In the function "registrate", how can I get this values?

function registrate($data = array())
    $name = $data['name'];

There is some really good information at http://www.php.net, you should look.

I imagined this, but had to ask to discover if I could get someway easier.
No, this is the right way.


Theme © iAndrew 2016 - Forum software by © MyBB