You are here: Population array from string of comma separated numbers? « PHP Programming Language « IT news, forums, messages
Population array from string of comma separated numbers?

Posted by usenet on 07/28/06 22:48

How would one create an array from the values in string ?
$mystring = "67,11,68,11,69,11,70,11"; // comes from a varchar MySQL field

I wish that
$myarray = array($mystring);
would work, but it doesn't seem to.

I've tried every angle of string evaluation I can think of...but not the one
that works. I've considered iterating through the string character by character
and extracting each numeric substr, but it must be simpler than that.

Any and all advice will be appreciated.

 

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

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