i have managed to connect with Linkedin APi, so i can get the users details using below code.
PHP Code:
$response $OBJ_linkedin->profile('~:(id,first-name,last-name,picture-url,email-address,phone-numbers)'); 
$response['success'] === TRUE) { 
$response['linkedin'] = new SimpleXMLElement($response['linkedin']); 
after that i need to display the retrieved details into text fields like this.

HTML Code:
<table border="1">
<td><?php echo $response['linkedin']->id; ?></td>

<td>first Name</td>
<td><?php echo $response['linkedin']->first-name; ?></td>

<td><?php echo $response['linkedin']->email-address; ?></td>
Id is displaying correctly, but other details are not showing. can anyone help on this. thanks in advance