Jump to content

[SOLVED] When making xmltag, how to strip away a decimal point from the data?


chinwan

Recommended Posts

I have the following line:

	$tags[] = $this->MakeXMLTag('creditcardpercent', $paymentDetails['creditcardpercent'], true);

 

The way the number is stored in $paymentDetails['creditcardpercent'] is ".10" with a decimal point.

 

I want it that when it pulls in the data to the xml tag, it will strip the decimal point.

 

Any suggestions?

 

Thank You

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.