Jump to content

php math functions


1414mark1414

Recommended Posts

Why in the world would you want to???But if you really want to, you will need to remove it before operating:

function rmvcommas($number) {	$number = str_replace(",","",$number);	return $number;}$tt = $t - rmvcommas("200,000");

However, in programming you should really try to forget about commas.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...