i am trying to get array values to string, but i fail
My array ($epg) looks like this:
Array
(
)
Array
(
[0] => Array
(
[title] => VGhlIEZhbnRhc3kgRm9vdGJhbGwgQ2x1Yg==
[lang] => en
[start] => 1425385800
[end] => 1425387600
[description] => Sm9obiBGZW5kbGV5IGFuZCBQYXVsIE1lcnNvbiBwcmVzZW50IGEgZGlzY3Vzc2lvbiBvbiBrZXkgZmFudGFzeSBmb290YmFsbCBpc3N1ZXMsIGFzIHdlbGwgYXMgdGhlIHdlZWtlbmQncyBQcmVtaWVyIExlYWd1ZSBtYXRjaGVzLiBBbHNvIGZlYXR1cmluZyBndWVzdHMgZnJvbSB0aGUgd29ybGRzIG9mIHNwb3J0IGFuZCBzaG93Yml6Lg==
)
[1] => Array
(
[title] => QmFyY2xheXMgUHJlbWllciBMZWFndWUgUmV2aWV3
[lang] => en
[start] => 1425387600
[end] => 1425391200
[description] => QSBsb29rIGJhY2sgYXQgcmVjZW50IGZpeHR1cmVzIGluIHRoZSBFbmdsaXNoIFByZW1pZXIgTGVhZ3VlLCBhcyB0aGUgc2Vhc29uIGNvbnRpbnVlZCB3aXRoIG1hdGNoZXMgYWZmZWN0aW5nIGJvdGggZW5kcyBvZiB0aGUgdGFibGUu
)
)
Array
(
)
And then i create foreach loop, and try to get values like this:
$title = $epg['title'];
$lang = $epg['lang'];
echo $lang;
echo $title;
But i get errors:
Notice: Undefined index: title in........ Notice: Undefined index: lang in.........
I am guessing that happens, because i have strange array , these empty arrays at start and end.
If so, how can i fix it?
Regards M