You are here: Re: get data into an array « PHP Programming Language « IT news, forums, messages
Re: get data into an array

Posted by Johnny on 09/27/06 04:21

"Sam" <samkline@gmail.com> wrote in message
news:1159304748.498931.23560@m73g2000cwd.googlegroups.com...
>
> ZeldorBlat wrote:
> > Sam wrote:
> > > hi all,
> > >
> > > how can i take this data and create an array? i have no idea where to
> > > start.
> >
> > This would be a good place to start:
> > <http://www.php.net/manual/en/language.types.array.php>
>
> i should have been more specific, i meant i have data in that format,
> how can i get that into an array.
>
errr... how about:
$samsarray = array("Freq"=>"3",Count"=>"3",...);

perhaps you were really asking "how can I extract data from this other
data"?

you can use str functions to mess with stuff like that, fer instance you
might search for a token with
http://us3.php.net/manual/en/function.strpos.php
then another token and then get the bit between them
maybe do that again then put them 2 in the array. repeat rinse wash

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация