title: PHP How to test a value of standard class object
body: <p>I would like to check if the value of a standard class object has a value of 'None'. The object is a PDO and pulls data from the database.</p>
  
  <p>Here is the data from a var_dump:</p>
  
  <pre><code>array (size=1)
    0 =&gt; 
      object(stdClass)[8]
        public 'Subid' =&gt; string '1' (length=1)
        public 'id' =&gt; string '27' (length=2)
        public 'english' =&gt; string 'English Standard' (length=16)
        public 'maths' =&gt; string 'Mathematics General 2' (length=21)
        public 'hsie1' =&gt; string 'Modern History' (length=14)
        public 'science1' =&gt; string 'Biology' (length=7)
        public 'science2' =&gt; string 'None' (length=4)
        public 'science3' =&gt; string 'None' (length=4)
        public 'tech1' =&gt; string 'Agriculture' (length=11)
        public 'tech2' =&gt; string 'None' (length=4)
        public 'extension' =&gt; string 'None' (length=4)
        public 'arts1' =&gt; string 'None' (length=4)
        public 'arts2' =&gt; string 'Dance' (length=5)
        public 'pdhpe1' =&gt; string 'None' (length=4)
        public 'vet1' =&gt; string 'None' (length=4)
        public 'start_time' =&gt; string '2016-11-15 19:54:08' (length=19)
  </code></pre>
  
  <p>Is it possible to loop through the keys and test the values?</p>