Artesaos\SEOTools\TwitterCards::eachValue PHP Method

eachValue() protected method

Make tags.
protected eachValue ( array $values, null | string $prefix = null )
$values array
$prefix null | string
    protected function eachValue(array $values, $prefix = null)
    {
        foreach ($values as $key => $value) {
            if (is_array($value)) {
                $this->eachValue($value, $key);
            } else {
                if (is_numeric($key)) {
                    $key = $prefix . $key;
                } elseif (is_string($prefix)) {
                    $key = $prefix . ':' . $key;
                }
                $this->html[] = $this->makeTag($key, $value);
            }
        }
    }