私はこのオブジェクトをAPIから持っています。配列へのオブジェクト、型ヒントが機能しない
object(DotMailer\Api\DataTypes\XsInt)#62 (1) {
["value":"DotMailer\Api\DataTypes\XsInt":private]=> int(16711)
}
object(DotMailer\Api\DataTypes\XsInt)#67 (1) {
["value":"DotMailer\Api\DataTypes\XsInt":private]=> int(16722)
}
object(DotMailer\Api\DataTypes\XsInt)#73 (1) {
["value":"DotMailer\Api\DataTypes\XsInt":private]=> int(16723)
}
どのように配列に変換できますか?
私が試してみた:
$arr = (array) $apiResponse;
をしかし、私はちょうどNULLを取得します。
を、これらのオブジェクトのいずれかのSee the DotMailer API client code here.
ので、?すべての属性はプライベートです。 –
このオブジェクトの配列を意味しますか? – RiggsFolly
get_object_vars()関数についてはどうですか? –