class Tags (View source)

Defines a class that can explode and implode tags.

Methods

static array
explode(string $tags)

Explodes a string of tags into an array.

static string
encode(string $tag)

Encodes a tag string, taking care of special cases like commas and quotes.

static string
implode(array $tags)

Implodes an array of tags into a string.

Details

static array explode(string $tags)

Explodes a string of tags into an array.

Parameters

string $tags

A string to explode.

Return Value

array

An array of tags.

static string encode(string $tag)

Encodes a tag string, taking care of special cases like commas and quotes.

Parameters

string $tag

A tag string.

Return Value

string

The encoded string.

static string implode(array $tags)

Implodes an array of tags into a string.

Parameters

array $tags

An array of tags.

Return Value

string

The imploded string.