P
P
P7472021-01-22 13:05:25
phpstorm
P747, 2021-01-22 13:05:25

How to sort an array by key in PhpStrom?

Good afternoon!

How can I sort an array IN CODE, is there a plugin?

For example:

$array = [
   'c' => 'test',
   'a' => 'test',
   'b' => 'test',
];
//Чтобы было:
$array = [
   'a' => 'test',
   'b' => 'test',
   'c' => 'test',
];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-01-22
@P747

https://plugins.jetbrains.com/plugin/5919-lines-sorter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question