Maybe:

$total = $var[0]['$total'] ??


--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br <http://goo.gl/b1EEd>

thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt



On Mon, Apr 23, 2012 at 01:09, jasonix <jayhina...@gmail.com> wrote:

> hi all. thanks for replying! =)
>
> what i want to know is that how can I extract the data from the array
> and store it to a variable. in ken's reply, below:
>
> On Apr 23, 2:24 am, kdubya <kenwin...@winanstech.com> wrote:
> > Your SQL syntax in incorrect.
>
> >
> > Array
> > (
> >     [0] => Array
> >         (
> >             [$total] => <some_number>
> >         )
> >
> > )
> >
>
> Let's assume that the array [$total] is 300.00.
>
> Now, how can i extract or get the [$total] value in the array and
> store it as an integer/float variable? Like $extractedTotal = 300.00.
>
> Thanks so much. =)
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to