original_string: protected static function connection_string_to_memcache_servers(string $str) : array {
          $servers = [];
          $parts   = explode(',', $str);
          foreach ($parts as $part) {
              $part = trim($part);
              $pos  = strrpos($part, ':');
              if ($pos !== false) {
                  $host = substr($part, 0, $pos);
                  $port = substr($part, ($pos + 1));
              } else {
                  $host = $part;
                  $port = 11211;
              }
              $servers[] = [$host, $port];
          }
          return $servers;
      }
code: protected static function connection_string_to_memcache_servers(string $str) : array {
          $servers = [];
          $parts   = explode(',', $str);
          foreach ($parts as $part) {
              $part = trim($part);
              $pos  = strrpos($part, ':');
              if ($pos !== false) {
                  $host = substr($part, 0, $pos);
                  $port = substr($part, ($pos + 1));
              } else {
                  $host = $part;
                  $port = 11211;
              }
              $servers[] = [$host, $port];
          }
          return $servers;
      }
code_tokens: protected static function connection_string_to_memcache_servers ( string $ str ) : array { $ servers = [ ] ; $ parts = explode ( ',' , $ str ) ; foreach ( $ parts as $ part ) { $ part = trim ( $ part ) ; $ pos = strrpos ( $ part , ':' ) ; if ( $ pos !== false ) { $ host = substr ( $ part , 0 , $ pos ) ; $ port = substr ( $ part , ( $ pos + 1 ) ) ; } else { $ host = $ part ; $ port = 11211 ; } $ servers [ ] = [ $ host , $ port ] ; } return $ servers ; }
docstring: Convert a connection string to an array of servers.
  
  "abc:123, xyz:789" to
  [
  ['abc', '123'],
  ['xyz', '789'],
  ]
  
  @param   string  $str save_path value containing memcached connection string
  @return  array[]
docstring_tokens: Convert a connection string to an array of servers .