Implodes the keys of this array.

@param string $glue

@return string
346659
public function implodeKeys(string $glue = ''): string
    {
        return $this->implode_recursive($glue, $this->getArray(), true);
    }
828604
public function implode($value, $glue = ', ')
    {
        $first = $this->first();

        if (is_array($first) || is_object($first)) {
            return implode($glue, $this->pluck($value)->all());
        }

        return implode($value, $this->items);
    }
579501
public static function flatten($arr, $glue = '=')
    {
        $list = array();

        foreach ($arr as $key => $value) {
            $list[] = "{$key}{$glue}{$value}";
        }

        return $list;
    }
1196059
public static function listing($items, $glue = ' &amp; ', $sep = ', ') {
        if (is_array($items)) {
            $lastItem = array_pop($items);

            if (count($items) === 0) {
                return $lastItem;
            }

            $items = implode($sep, $items);
            $items = $items . $glue . $lastItem;
        }

        return $items;
    }
1343267
public static function implode(Array $array, $glue, Closure $closure) {
    return implode($glue, array_map($closure, (array) $array, array_keys($array)));
  }
1063328
public function implodeSqlClauses($clauses, $glue = ',')
    {
        $statements = [];

        foreach($clauses as $clause){
            $statements[] = $clause->getSql($this);
        }

        return implode($statements, $glue);
    }
619020
public static function implode($glue, $pieces)
	{
		$pieces = static::asArray($pieces);

		return static::is_array($pieces) ? implode($glue, $pieces) : NULL;
	}
812188
public static function implode($tags) {
    $encoded_tags = array();
    foreach ($tags as $tag) {
      $encoded_tags[] = self::encode($tag);
    }
    return implode(', ', $encoded_tags);
  }
1355332
public function join(string $glue = ' '): Str
    {
        return new Str(implode($glue, $this->values()->toArray()));
    }
88444
protected function encode($data)
    {
        $data = [
            '<?php',
            '',
            'return ' . $this->render($data, 0) . ';',
        ];

        return implode(Data::LE, $data);
    }
688227
public function mergeFilter($filters, $glue='and') {
		$crit = array();
		$params = array();
		if ($filters) {
			foreach($filters as $filter) {
				$crit[] = array_shift($filter);
				$params = array_merge($params,$filter);
			}
			array_unshift($params,'( '.implode(' ) '.$glue.' ( ',$crit).' )');
		}
		return $params;
	}
79278
protected function recursiveImplode(string $glue, array $array): string
    {
        $return = '';
        $index = 0;
        $count = count($array);
        foreach ($array as $row) {
            if (is_array($row)) {
                $return .= $this->recursiveImplode($glue, $row);
            } else {
                $return .= (is_object($row)) ? get_class($row) : $row;
            }
            if ($index < $count - 1) {
                $return .= $glue;
            }
            ++$index;
        }

        return $return;
    }
114269
public static function implodeSlugs($glue, $terms)
    {
        if ($terms==null || empty($terms) || is_wp_error($terms)) return '';

        $tokens = array();
        foreach ($terms as $t)
        {
            $tokens[] = $t->slug;
        }

        return implode($glue, $tokens);
    }
802654
public static function SelectImplode ($glue, $array, $target_key_list) {
		$tmp = [];
		foreach ($target_key_list as $key) {
			$tmp[] = $array[$key];
		}
		return implode($glue, $tmp);
	}
469819
public function implode($separator = ' : ')
    {
        $m = array_map(
            function (StringType $msg) {
                return $msg();
            },
            $this->messages
        );

        return implode($separator, $m);
    }
878533
public function implode($value, $glue = null): string
    {
        return $this->reduce(function ($carry, $item) use ($value, $glue) {
            $currentGlue = $glue;
            if (is_string($item) && $currentGlue === null) {
                $currentGlue = $value;
            }
            if ($carry) {
                $carry .= $currentGlue;
            }

            if ($value && ($item instanceof ArrayAccess || is_array($item))) {
                $item = $item[$value];
            }

            return $carry . $item;
        }, '');
    }
1115586
protected function parameterizeValues(array $values)
    {
        foreach ($values as &$value) {
            $value = $this->parameterize($value);
        }

        return '('.implode(',', $values).')';
    }