Skip to content

Instantly share code, notes, and snippets.

@firstfu
Created June 3, 2019 07:00
Show Gist options
  • Save firstfu/fdc7578756a1010493005428133afba5 to your computer and use it in GitHub Desktop.
Save firstfu/fdc7578756a1010493005428133afba5 to your computer and use it in GitHub Desktop.
##去除數字後多除0
$disPrice = rtrim(rtrim($disPrice, '0'), '.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment