You are confusing a PHP object with a PHP array.
You should be doing this: echo $arr->clientid;
Example 1, access a value of an object like this:
<?php
$jsondata = '{"firstName":"John", "lastName":"Doe"}';
$arr = json_decode($jsondata);
echo gettype($arr);
echo $arr->firstName;
?>
This prints:
object
John
Example 2, access a value of an array like this:
<?php
$yarr = array(5,6,7);
echo $yarr[0];
?>
This prints:
5