title: Coding style. Short functions vs. inline code
body: <p>What do you think fellow programmers about using short functions vs using inline code?</p>
  
  <p>Example with function:</p>
  
  <pre><code>//Check if all keys from $keys exist in $array
  function functionName(array $array, array $keys) {
      return array_diff($keys, array_keys($array));
  }
  
  functionName($mas,$keys);
  </code></pre>
  
  <p>vs. using just the code:</p>
  
  <pre><code>array_diff($keys, array_keys($mas));
  </code></pre>