title: yii2 printing out data from table
body: <p>I have the following table</p>
  
  <pre><code>id name date_crated
  1   first   2001
  2   second  2002
  3   third   2003
  </code></pre>
  
  <p>Now I'm getting data of the second row for example.</p>
  
  <pre><code>   $secondRow= testTable::find()
              -&gt;where(['id' =&gt; 2])
              -&gt;one();
  </code></pre>
  
  <p>But now I want to print out everything including the name of cells.
  I mean I want to have access to everything.</p>
  
  <p>So how can I print out <code>'id' , '2' , 'name', 'second' , 'date_created' , '2002'</code> ?</p>