Returns values

@param boolean $implode Whether result must be an array or a string separated by comma
@return string|array
504906
public function getValues($implode = true)
    {
        // We don't really need duplicates
        $values = array_unique($this->values);

        if ($implode === true) {
            return implode(',', $values);
        } else {
            return $values;
        }
    }
640776
protected function normalize( array $defaults = [], $implode = false )
	{
		$args = $this->mergeAttributesWith( $defaults );

		$normalize = new Normalizer;

		return ( $this->element && method_exists( $normalize, $this->element ))
			? $normalize->{$this->element}( $args, $implode )
			: ( !!$implode ? '' : [] );
	}
884592
public function getValue()
    {
        return implode(
            ',',
            [
                $this->bottomLeft->getLatitude(),
                $this->bottomLeft->getLongitude(),
                $this->topRight->getLatitude(),
                $this->topRight->getLongitude(),
            ]
        );
    }
129596
public function getValue()
    {
        return implode(
            ',',
            [
                $this->center->getLatitude(),
                $this->center->getLongitude(),
                $this->radiusInKm,
            ]
        );
    }
830066
function implode_tokens( array $a ){
		$b = array();
		foreach( $a as $token ){
			$b[] = $this->token_name( $token );
		}
		return implode( ' ', $b );
	}
769828
private function getList($array)
    {
        $list = array();
        foreach ($array as $key => $value) {
            $list[] = !is_array($value) ? $value : $this->getList($v);
        }

        return '(' . implode(' ', $list) . ')';
    }
1349093
private function implodeArray(array $arr)
    {
        $values = [];

        foreach ($arr as $value) {
            if (is_array($value)) {
                $values[] = $this->implodeArray($value);
            } else {
                $values[] = $value;
            }
        }

        return "{" . implode(",", $values) . "}";
    }
8718
function implodeData(data) {
	var dataArray = [], field;
	for(field in data) {
		dataArray.push(types.STRING);
		dataArray.push(encodeString(field));
		dataArray.push(types.STRING);
		dataArray.push(encodeString(data[field]));
	}
	return implodeArray(dataArray);
}
1099387
public function getQueryString()
    {
        $parameters = $this->query->all();
        array_walk($parameters,
            function (&$value, $key)
            {
                $value = $key . '=' . $value;
            }
        );
        return implode('&', $parameters);
    }
578689
public function maybeImplode( array $attributes, $implode = true )
	{
		if( !$implode || $implode !== 'implode' ) {
			return $attributes;
		}
		$results = [];
		foreach( $attributes as $key => $value ) {
			// if data attributes, use single quotes in case of json encoded values
			$quotes = false !== stripos( $key, 'data-' ) ? "'" : '"';
			if( is_array( $value )) {
				$value = json_encode( $value );
				$quotes = "'";
			}
			$results[] = is_string( $key )
				? sprintf( '%1$s=%3$s%2$s%3$s', $key, $value, $quotes )
				: $value;
		}
		return implode( ' ', $results );
	}
1210236
public static function RETURNSTRING($testValue = '') {
		$testValue	= PHPExcel_Calculation_Functions::flattenSingleValue($testValue);

		if (is_string($testValue)) {
			return $testValue;
		}
		return Null;
	}
197863
public static function values(array $array, bool $flatten = false): array
    {
        if (!$flatten) {
            return \array_values($array);
        }

        $res = [];

        \array_walk_recursive($array, function ($val) use (&$res) {
            $res[] = $val;
        });

        return $res;
    }
1334739
public function select( array $args = [], $implode = false )
	{
		$attributes = $this->parseAttributes( self::SELECT_ATTRIBUTES, $args );

		return $this->maybeImplode( $attributes, $implode );
	}
1257274
protected function params(array $params, bool $enclose = true): string
	{
		$pieces = [];

		foreach($params as $param)
		{
			$pieces[] = $this->param($param, $enclose);
		}

		return implode(', ', $pieces);
	}
1192374
public function getStack($imploded = true)
    {
        return (bool) $imploded ? implode('.', $this->keystack) : $this->keystack;
    }
1121755
public function getFlatAddress()
    {
        $parts = ['address1', 'address2', 'csz', 'country'];
        $address = [];
        foreach ($parts as $part) {
            if (isset($this->{$part})) {
                $address[] = $this->{$part};
            }
        }

        return implode(', ', $address);
    }
312210
protected function _arrayToString($data)
    {
        $fields = array();
        foreach($data as $value)
        {
            //Implode array's
            if(is_array($value)) {
                $value = implode(',', $value);
            }

             // Escape the quote character within the field (e.g. " becomes "")
            if ($this->_quoteValue($value))
            {
                $quoted_value = str_replace($this->quote, $this->quote.$this->quote, $value);
                $fields[] 	  = $this->quote . $quoted_value . $this->quote;
            }
            else $fields[] = $value;
        }

        return  implode($this->separator, $fields);
    }