Nathan's Brain
  • Introduction
  • Incubator
  • American Sign Language
  • Art
  • Behavior Change
    • Akrasia
      • Beeminder
      • Procrastination
  • Career
  • Civil Discourse
  • Communication
  • Computer Science
    • Artificial Intelligence
  • Creativity
    • Writing
  • Design
    • Color
    • Design Process
    • Stock
    • Web Design
  • Economics
  • Engineering
  • Entrepreneurship
    • Customer Development
    • Marketing
      • Newsletter Publishing
    • Pricing
  • Environment
    • Energy
    • Transportation
  • Failure & Vulnerability
  • Freelancing
    • Estimating
  • Futurism
  • Governance & Politics
    • Representation & Voting
  • Health
  • Humane Tech
    • Phone Usage
  • Infotainment
  • Linguistics
  • Minimalism
  • Personal Finance
    • FIRE Movement
    • Investing
  • Productivity
    • Attention Management
    • Audio for Focus
    • Automation
    • Task Management
    • Time Management
  • Programming Languages
    • JavaScript
      • Snippets
    • PHP
    • Python
      • Development Environments
      • Package Management & Distribution
  • Psychology
  • Quantified Self
    • Experience Sampling Method
  • Rationality
    • Bayes' Theorem
    • Cognitive Biases
  • Religion
    • Adventism
  • Remote Work
  • Research
    • Note Taking
  • Science
  • Self-Study
    • Accessibility & Usability
    • Algorithms
    • Artificial Intelligence
    • Cryptography
    • Data Science
    • Design Patterns
    • Freelancing
    • Functional Programming
    • Game Development
    • Graphic Design
    • Grid Layout
    • Microservices
    • PWAs
    • SaaS
    • Software Craft
    • Software Management
    • Statistics
    • SVG
    • UI Design
    • Web Animation
  • Software Development
    • API Design
    • Collaboration
    • Command Line
    • git
    • Integrated Development Environments
    • Knoxville Scene
    • Paradigms
    • Refactoring
    • Self-Care
    • Testing
  • Technology History
    • People
    • Timeline
  • Web Development
    • Accessibility & Usability
    • APIs
    • Browsers
    • Content Management Systems
    • CSS
    • Email
    • Frameworks
      • React
    • Libraries
    • No Code & Low Code
    • Performance
    • Serverless
    • Static Sites
    • Testing
    • Twig
    • Type
Powered by GitBook
On this page
  • Snippets
  • PHPStorm
  • Links
  1. Programming Languages

PHP

PreviousSnippetsNextPython

Last updated 5 years ago

Snippets

array_map_recursive ():

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

#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

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

⇧⌘A

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

⌘O ⇧⌘O ⌥⌘O

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

⌘E

Select a recently opened file from the list.

⌥⏎

Improve or optimize a code construct.

⌃Space

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

⌥↑ ⌥↓

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

⌘/ ⌥⌘/

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.

Links

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

source
Mastering PhpStorm keyboard shortcuts
Slim
Search Everywhere
Find Action
Find a class, file, or symbol
View recent files
Show intention actions
Basic code completion
Extend or shrink selection
Add/remove line or block comment