RssUtils

RSS feed generic utilities class

package

Default

Methods

Generate a valid XML RSS feed string from the specified array data.

generateRssFeedFromArray(string $url, string $title, string $description, string $locale, string $array, string $encoding = 'utf-8') : string
static

Arguments

$url

string

The url where this feed can be found

$title

string

The rss feed title

$description

string

The rss feed contents resume

$locale

string

The rss feed language in a standard locales notation: en_US, es_ES, fr_FR, etc..

$array

string

The feed data. Must be an array of arrays, with each element containing: [title],[link],[description],[pubdate]

$encoding

string

The type of charset used with the generated data: utf-8 is defauls

Response

string

The xml rss feed string ready to use on a site