title: PHP query -- Returned array values
body: <p>I am using the query function in cake PHP ($this->query(select...)), and I know it returns an array of the values. If the query will only return one value, what is the position of that value in the array?</p>
  
  <p>Would $element = $arrayName(0) be correct?</p>
  
  <p>I'm trying to use it as such:</p>
  
  <pre><code>$flowsheet_name = $this-&gt;query("select FLOWSHEET_NAME from FLOWSHEET_TEMPLATE where FLOWSHEET_ID = ".$value.";");
          $flowsheet_question = $flowsheet_name(0);
          array_push($this-&gt;$filedMethodMappings, $flowsheet_question =&gt; array(
                  CaBase::KEY_MAPPING_LOGIC_COMPLEXITY =&gt; CaBase::LEVEL3_COMPLEXITY,
                  CaBase::KEY_FIELD_LOGIC_NAME         =&gt; 'wsUnifiedKey',
                  CaBase::KEY_FIELD_QUESTION_ID        =&gt; ''.$value,
                  )
              );
  </code></pre>
  
  <p>But I can't tell if it's working. I'm getting a double arrow error here:</p>
  
  <pre><code>$flowsheet_question =&gt; array(
  </code></pre>