original_string: public static function getAllArrayItemsByKeyPrefix($array, $prefix, $stripPrefix = false) {
          $returnValues = array();
          foreach ($array as $key => $value) {
              $positionOfPrefix = strpos($key, $prefix);
              if (is_numeric($positionOfPrefix) && $positionOfPrefix == 0) {
                  if ($stripPrefix) $key = substr($key, strlen($prefix));
                  $returnValues [$key] = $value;
              }
          }
  
          return $returnValues;
      }
code: public static function getAllArrayItemsByKeyPrefix($array, $prefix, $stripPrefix = false) {
          $returnValues = array();
          foreach ($array as $key => $value) {
              $positionOfPrefix = strpos($key, $prefix);
              if (is_numeric($positionOfPrefix) && $positionOfPrefix == 0) {
                  if ($stripPrefix) $key = substr($key, strlen($prefix));
                  $returnValues [$key] = $value;
              }
          }
  
          return $returnValues;
      }
code_tokens: public static function getAllArrayItemsByKeyPrefix ( $ array , $ prefix , $ stripPrefix = false ) { $ returnValues = array ( ) ; foreach ( $ array as $ key => $ value ) { $ positionOfPrefix = strpos ( $ key , $ prefix ) ; if ( is_numeric ( $ positionOfPrefix ) && $ positionOfPrefix == 0 ) { if ( $ stripPrefix ) $ key = substr ( $ key , strlen ( $ prefix ) ) ; $ returnValues [ $ key ] = $ value ; } } return $ returnValues ; }
docstring: Find all parameters in the passed array with a key starting with the supplied prefix.
  Return them as an associative array by key.
  
  @param array $array
  @param string $prefix
  
  @return array
docstring_tokens: Find all parameters in the passed array with a key starting with the supplied prefix . Return them as an associative array by key .