I have the function below to match currency in PHP. The leading dollar sign is required, followed by an amount with or without commas, if they are used, they should be used properly.
I am sending it $5,000 as a test and it does not match. I cannot figure out why not.