PHP's money_format() function?
{{ money_format('%n', $amount) }}
// I also make sure the locale is set somewhere
setlocale(LC_MONETARY, 'en_GB.UTF-8');
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi All,
I'm using Laravel obviously and Stripe API (not Cashier) and I want to get the amount to return into a properly formatted value.
Currently i get the customer charge object and the amount returns 2399 which I need to be displayed within the CMS as 23.99 so my question is how can I get this object then convert it to a proper format?
Please or to participate in this conversation.