Write the PHP expression that formats a float $price as a two-decimal dollar string, e.g. '$19.99'.
A product listing needs consistently formatted prices.
Ready to try it?
Create a free account and subscribe to take "Write a sprintf Expression for a Formatted Price". Earn 90 XP and track your internship progress.
Already have an account? Sign in