Freeder
 All Classes Files Functions Variables Pages
Functions
feed2array.php File Reference

feed2array lib by Bronco to converts feeds to arrays More...

Functions

 feed2array ($feed, $load=false, $debug=false)
 
 truncate ($text, $length=500, $ending= '…', $exact=false, $considerHtml=true)
 

Detailed Description

feed2array lib by Bronco to converts feeds to arrays

Freeder

Function Documentation

feed2array (   $feed,
  $load = false,
  $debug = false 
)

Converts a feed (RSS or ATOM) to an array

Modified version, closer to the specifications and handling more elements

Author
bronc.nosp@m.o@wa.nosp@m.rrior.nosp@m.dudi.nosp@m.manch.nosp@m.e.ne.nosp@m.t, modified for Freeder
Version
0.2.1
Parameters
$feedis either a feed content ($load=false) or a feed URI ($load=true)
$debugshould be set to true to display error messages.
Returns
returns an (array)array, or (boolean)false if an exception occurs.
truncate (   $text,
  $length = 500,
  $ending = '…',
  $exact = false,
  $considerHtml = true 
)

Truncate at a certain length, keeping html tags intact.