creating a function in PHP to take number comma number and divide them?

Spazz

New member
Ok so my question is as follows.

I have an XML file with quite a bit of information in it that I am parsing and displaying in a table via PHP.

I have just started working with this so I have just done a very basic... display all the information 1 line at a time.

what I am going to end up doing is making it show up as an actual table with separate columns and such but one of the fields has a ###,### in it IE: 460,198

What I am wanting to do is parse all this information into an array but when it see's the ###,### it automatically divides 460 by 198, or if I cannot do that then parse it into an array then run that array field through a function that pulls the 2 numbers apart divides them, then when I display the data I can show the first number, then second number then the answer in three different fields.

Is there a way to do this?
 
Back
Top