You are here: Re: array help « PHP Programming Language « IT news, forums, messages
Re: array help

Posted by .:[ ikciu ]:. on 10/17/06 22:03

Hmm Uzytkownik <kurrent@gmail.com> wrote:
> 1.) How would I make a copy of the old prices array that
> was manipulated?

$copy = $prices;

> 2.) a) What if i have commas in my prices by default?

str_replace(',','.',$newprice) + 9....

>
> b) How would I go about processing comma values
> received via a form that a user entered or from .CSV
> file that looked like (132,500, 123,340, 345,959,
> 244,459)?

str_replace(',','.',$newprice) + 9....


> c) How would I add a comma into my printed outputed values?

str_replace('.',',',$newprice) + 9....


> 3.) There must be a better way to print out all the values
> from an array but constructing a loop came to mind and
> beats doing it one by one. Is there better way?

you can do it this way what you do


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this => mysql_query();

 

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

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