[Info] Raw Feed Data with empty array keys
-
It took me some time before I figured this out, so I thought I’d post it for others.
If you need to get a non-standard rss item and your raw data has an empty key array like: [], you can use an empty string to get it because every key is string-a-fied.
Example:
[player] => Array
(
[0] => Array
(
[data] =>
[attribs] => Array
(
[] => Array
(
[url] => https://someurl.com
))
[xml_base] =>
[xml_base_explicit] =>
[xml_lang] => en-US
))
To get the url you would use something like:
{{data[‘player’][‘0’][‘attribs’][”][‘url’]}}
- The topic ‘[Info] Raw Feed Data with empty array keys’ is closed to new replies.