Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Data from array
    primarykey
    data
    text
    <p>I am trying to get data from array but I always failed. <br/></p> <p>This is the array:</p> <pre><code>Array ( [gameSpecificLoyaltyRewards] =&gt; [reconnectDelay] =&gt; 0 [lastModifiedDate] =&gt; [game] =&gt; Game Object ( [spectatorsAllowed:protected] =&gt; NONE [passwordSet:protected] =&gt; [practiceGameRewardsDisabledReasons:protected] =&gt; Array ( ) [gameType:protected] =&gt; RANKED_GAME [gameTypeConfigId:protected] =&gt; 2 [glmGameId:protected] =&gt; [gameState:protected] =&gt; IN_PROGRESS [glmHost:protected] =&gt; [observers:protected] =&gt; Array ( ) [statusOfParticipants:protected] =&gt; 1111111111 [glmSecurePort:protected] =&gt; 0 [id:protected] =&gt; 58513543 [ownerSummary:protected] =&gt; [teamTwo:protected] =&gt; Array ( [0] =&gt; zlokomatic\phpLoL\amf\game\PlayerParticipant Object ( [accountId:protected] =&gt; 346001 [queueRating:protected] =&gt; 0 [botDifficulty:protected] =&gt; NONE [minor:protected] =&gt; [locale:protected] =&gt; [partnerId:protected] =&gt; [lastSelectedSkinIndex:protected] =&gt; 0 [profileIconId:protected] =&gt; 548 [rankedTeamGuest:protected] =&gt; [summonerId:protected] =&gt; 361101 [selectedRole:protected] =&gt; [pickMode:protected] =&gt; 0 [teamParticipantId:protected] =&gt; 138114436 [timeAddedToQueue:protected] =&gt; 1384270965374 </code></pre> <p>Using <strong>PHP</strong>, I am trying to get :</p> <pre><code>[gameType:protected] =&gt; RANKED_GAME </code></pre> <p>and</p> <pre><code>[accountId:protected] =&gt; 346001 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload