PHP

Snippets

array_map_recursive (sourcearrow-up-right):

function array_map_recursive($callback, $array)
{
  $func = function ($item) use (&$func, &$callback) {
    return is_array($item) ? array_map($func, $item) : call_user_func($callback, $item);
  };

  return array_map($func, $array);
}

PHPStorm

Mastering PhpStorm keyboard shortcutsarrow-up-right #article - "PhpStorm has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and other tasks. Memorizing these hotkeys can help you stay more productive by keeping your hands on the keyboard."

Shortcut

Action

Double Ctrl

Run Anything

Execute commands, such as opening a project, launching a run/debug configuration, running a command-line utility, and so on. The available commands depend on the set of plugins and tools you have configured for your project.

Double Shift

Search Everywherearrow-up-right

Find anything related to PhpStorm or your project and open it, execute it, or jump to it.

⇧⌘A

Find Actionarrow-up-right

Find a command and execute it, open a tool window or search for a setting.

⌘O ⇧⌘O ⌥⌘O

Find a class, file, or symbolarrow-up-right

Find and jump to the desired class, file, or symbol.

⌘E

View recent filesarrow-up-right

Select a recently opened file from the list.

⌥⏎

Show intention actionsarrow-up-right

Improve or optimize a code construct.

⌃Space

Basic code completionarrow-up-right

Complete names of classes, methods, fields, and keywords within the visibility scope.

⌥↑ ⌥↓

Extend or shrink selectionarrow-up-right

Increase or decrease the scope of selection according to specific code constructs.

⌘/ ⌥⌘/

Add/remove line or block commentarrow-up-right

Comment out a line or block of code.

⇧⌘F7

Highlight usages in a file

Highlight all occurrences of the selected fragment in the current file.

Slimarrow-up-right - "Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs."

Last updated