How to convert mixed value to string?

There is such design:
$APPLICATION->IncludeComponent("ss:geoip", "cityGeoIpTest", array( "CITY_1" => "845", "CITY_2" => "900", "CITY_3" => "823", "COMPONENT_TEMPLATE" => "cityGeoIpTest" ), true ); 
//$city_string = implode(",", $city) obviously not something;

It displays the desired city, how to convert what it shows in the line?

For example, to be able to do so:
$city=$APPLICATION->IncludeComponent("ss:geoip", "cityGeoIpTest", array( "CITY_1" => "845", "CITY_2" => "900", "CITY_3" => "823", "COMPONENT_TEMPLATE" => "cityGeoIpTest" ), true ); $city_string = implode(",", $city);
//some conversion
echo $city;//for example "Moscow"
July 8th 19 at 15:25
1 answer
July 8th 19 at 15:27
Solution
There most likely will not work because apparently I'm already in a public function, at least I tried - Hattie.Purdy28 commented on July 8th 19 at 15:30
in General what was supposed to work worked, but the decision rather refers to the structure of a specific project.

In any case, thanks for the advice, noted the decision. - Hattie.Purdy28 commented on July 8th 19 at 15:33

Find more questions by tags PHP