settype() in PHP for an ARRAY is producing Different output
<p>CODE 1: Reading data from Excel sheet. Containing 12 Different values. </p>

<p>The values are : 48,600,5.3,5,1500,6000,85,30,70,30,70,14 .   </p>

<pre><code>$BATTCONFIG=$objPHPExcel-&gt;getActiveSheet()-&gt;rangetoArray('C9:C20',null,true,true,true);
</code></pre>

<p>CODE 2: Trying to convert all VALUES in the array $BATTCONFIG to INTEGER using FOR loop. </p>

<pre><code>$y1 = (array_values($BATTCONFIG));
var_dump(y1);
for( $i=0 ; $i&lt;=11 ; $i++ )
{
    settype($y1[$i], "integer"); 
}
var_dump($y1);
</code></pre>

<p>But I am not getting the desiered output , I am getting all the values as 1 . </p>

<p>MY OUTPUT:</p>

<p>Before SETTYPE():</p>

<pre><code> array (size=12)
 0 =&gt; 
   array (size=1)
  'C' =&gt; float 48
1 =&gt; 
array (size=1)
  'C' =&gt; int 600
2 =&gt; 
array (size=1)
  'C' =&gt; float 0.3
3 =&gt; 
array (size=1)
  'C' =&gt; int 5
4 =&gt; 
array (size=1)
  'C' =&gt; float 1500
5 =&gt; 
array (size=1)
  'C' =&gt; int 6000
6 =&gt; 
array (size=1)
  'C' =&gt; int 85
7 =&gt; 
array (size=1)
  'C' =&gt; int 30
8 =&gt; 
array (size=1)
  'C' =&gt; int 70
 9 =&gt; 
array (size=1)
  'C' =&gt; int 30
10 =&gt; 
  array (size=1)
  'C' =&gt; int 70
 11 =&gt; 
array (size=1)
  'C' =&gt; float 14
</code></pre>

<p>AFTER SETTYPE():</p>

<pre><code>array (size=12)
0 =&gt; int 1
1 =&gt; int 1
2 =&gt; int 1
3 =&gt; int 1
4 =&gt; int 1
5 =&gt; int 1
6 =&gt; int 1
7 =&gt; int 1
8 =&gt; int 1
9 =&gt; int 1
10 =&gt; int 1
11 =&gt; int 1
</code></pre>

<p>Please help me out . I need these Integer values as output to plot my Graph. 
Thank you in advance.</p>
