hi my current function is something like this... i want to know how can i use const apiKey
as array. and how can i use 'key'=> self::apiKey
as 'key'=> self::apiKey[rand(0,1)]
etc. Please help me in it.
const apiKey = 'api_key_ods000doo123';
public function counter_params($video_ID, $part) {
$params = array(
'id' => $video_ID,
'key' => self::apiKey,
'part' => $part
);
$result = self::Connect($params);
//print_r($params);
return $result;
}