I am working on fixing some bug in legacy php code. I am not a PHP person. so please bear with me if this is a stupid question.
I see this line in the code:
$credentials = array("username"=>$fields->username, "password"=>$fields->password);
$this->profile->create($fields);
I don't understand what this syntax for array means?
I know this is associate array:
array("username"=>"mike","password"=>"123"
)
will translate to
{
"username": "mike",
"password" : "123"
}
but what the above one will translate to?