Affichage des articles dont le libellé est php protected object. Afficher tous les articles
Affichage des articles dont le libellé est php protected object. Afficher tous les articles

php protected object

lundi 15 février 2016

hello guys i need help..
PHP Code:

$group = $ts3Server->serverGroupGetById($value['sgid']);

foreach(
$group->privilegeKeyList()  as $k => $v)
{
           if(!
in_array($k, $items))
                  {
                          
$items[$k]['token'] = $k;
                          
$items[$k]['token_type'] = $v['token_type'];
                          
$items[$k]['token_id1'] = $v['token_id1'];
                          
$items[$k]['token_id2'] = $v['token_id2'];
                          
$items[$k]['token_created'] = $v['token_created'];
                          
$items[$k]['desc'] = $v['token_description'];
                   }
} 

but in array token_desciption is "protected" can't get it ....
PHP Code:

Array (
[
FynAH89SYf91WLwV6+s158I3CxuqDVayjXFHWFV7] =>
Array (
[
token] => FynAH89SYf91WLwV6+58I3CxuqDVayjXFHWFV7
[token_type] => 0
[token_id1] => 636
[token_id2] => 0
[token_created] => 1455477219
[desc] => TeamSpeak3_Helper_String Object ( [string:protected] => test [position:protected] => 0 )
)
) 

How can do to get it to non protected :) Thank's for help
php protected object