You are here: Re: how remove char around numbers « PHP Programming Language « IT news, forums, messages
Re: how remove char around numbers

Posted by Aerik on 04/13/07 03:06

On Apr 12, 5:47 pm, "joe" <jcha...@gmail.com> wrote:
> hello I have a string that has values in quotes 'hello' 'here' '199'
> 'something else'
>
> I need to remove the quotes only when they are around numbers.
> To make the string lookg like 'hello' 'here' 199 'something else'
> any ideas on how to do this? thanks.

Hm... use a regular expression, I'm thinking preg_replace ought to do
the trick...

Aerik

 

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

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