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

[eluser]Rubiz'[/eluser]
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:

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

  $this->registrate($data);
}

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

[eluser]wiredesignz[/eluser]
Code:
function registrate($data = array())
{
    $name = $data['name'];
    ....
}

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

[eluser]Rubiz'[/eluser]
I imagined this, but had to ask to discover if I could get someway easier.
No, this is the right way.

Thanx!!




Theme © iAndrew 2016 - Forum software by © MyBB