title: AWS PHP SDK Filter Aws\Result Object
body: <p>I am using AWS SDK PHP V3. If i run following code</p>
  
  <pre><code>$result = $client-&gt;getAccountPasswordPolicy([]);
  $result = $result-&gt;toArray();
  </code></pre>
  
  <p>It returns result below</p>
  
  <pre><code>Array
  (
      [PasswordPolicy] =&gt; Array
          (
              [MinimumPasswordLength] =&gt; 6
              [RequireSymbols] =&gt; 
              [RequireNumbers] =&gt; 
              [RequireUppercaseCharacters] =&gt; 1
              [RequireLowercaseCharacters] =&gt; 
              [AllowUsersToChangePassword] =&gt; 
              [ExpirePasswords] =&gt; 
          )
  
      [@metadata] =&gt; Array
          (
              [statusCode] =&gt; 200
              [effectiveUri] =&gt; https://iam.amazonaws.com
              [headers] =&gt; Array
                  (
                      [x-amzn-requestid] =&gt; 437f79e9-9ee0-11e7-8a82-47e702eaf8eb
                      [content-type] =&gt; text/xml
                      [content-length] =&gt; 740
                      [date] =&gt; Thu, 21 Sep 2017 15:19:29 GMT
                      [connection] =&gt; close
                  )
  
              [transferStats] =&gt; Array
                  (
                      [http] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>How to get result of only RequireUppercaseCharacters or RequireLowercaseCharacters using AWS SDK or do i have to use array functions to filter data?</p>
  
  <p><a href="http://docs.aws.amazon.com/aws-sdk-php/v3/api/api-iam-2010-05-08.html#getaccountpasswordpolicy" rel="nofollow noreferrer">Reference Link</a></p>