Asked  7 Months ago    Answers:  5   Viewed   63 times

I would like to know how can I add comma's to numbers. To make my question simple.

I would like to change this:




and :




and so on for larger numbers. Is it possible with a php function?



from the php manual

I'm assuming you want the english format.


$number = 1234.56;

// english notation (default)
$english_format_number = number_format($number);
// 1,235

// French notation
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56

$number = 1234.5678;

// english notation with a decimal point and without thousands seperator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57


my 2 cents

Wednesday, March 31, 2021
answered 7 Months ago

You should point to your vendor/autoload.php at Settings | PHP | PHPUnit when using PHPUnit via Composer.

This blog post has all the details (with pictures) to successfully configure IDE for such scenario:

Related usability ticket:

P.S. The WI-18388 ticket is already fixed in v8.0

Wednesday, March 31, 2021
answered 7 Months ago

On Mac OS X environment variables available in Terminal and for the normal applications can be different, check the related question for the solution how to make them similar.

Note that this solution will not work on Mountain Lion (10.8).

Saturday, May 29, 2021
answered 5 Months ago

Such functionality is called "Contexts" in PhpStorm and you can switch between them using Tools | Tasks & Contexts | Load Context.

More on this in official Help pages:

P.S. If you are using VCS in your project and you are using integration with an Issue Tracking System in PhpStorm then IDE will load your tabs that you had open when last time worked on that particular ticket/task.

Saturday, August 28, 2021
answered 2 Months ago

In PHPStorm, click File -> Settings

On the left side of the options click Editor -> File Types

On the list that appears on the right, scroll down and select Twig

In the bottom panel, click the + button to add a new wildcard and add


Click OK and then OK again.

Sunday, September 5, 2021
answered 2 Months ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :