Created
July 11, 2020 01:34
-
-
Save parzibyte/4189b94a38b78d4a1e2dd038432a5e0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$twig = new Environment($loader, []); | |
// ... | |
$twig->addFilter(new TwigFilter("dinero", function ($valor) { | |
return number_format($valor, 2); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment