I have the following output when printing an array called yestardayArray using print_r:
Array
(
[project-id] => Array
(
[373482] => Array
(
[responsible-ids] => Array
(
[129938] => Array
(
[0] => Array
(
[task-id] => 1812
[content] => HU-003 - FRONT
[progress] => 100
[completed_On] => 2020-10-23
[created_On] => 2020-10-14
[responsible-ids] => 129938
[responsible-name] => Malo M.
)
)
)
)
)
)
I need a way to get the "129938" value as an string from the responsible-ids Array. I'm iterating througth project-id ($pid), in the case of this example "373482", and using different keys. Let's call a variable needString:
$needString = $yesterdayArray["project-id"][$pid]["responsible-ids"][$key];
When I print needString I get "Array" instead of "129938".
How can I get that array key in a string form?