You are here: Extract numbers from string « PHP Programming Language « IT news, forums, messages
Extract numbers from string

Posted by zek2005 on 01/14/06 22:39

Hi friends!

I have a varchar field in my DB with numeric values separates by
spaces. I need to extract the numbers to create an array.

Example 1: 1820 1823 1825 --> need to be transform into

1820
1823
1825

Example 2: 1 5 21 31 <<> must be transform into
1
5
21
31

The difference between ex 1 and 2 is that there might be different
length between numbers.

Can anyone help me???

Thank you very much,

Ezequiel

 

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

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