2 added 271 characters in body
source | link

This is not really a Wordpress question but more PHP. To solve this problem, you need to use $value as your key as well plus _id

You can do something like this

$options[$value . '_id'] = ot_get_option($value);

EDIT

If you need $key to be the value of id, you can also try something like this

$options[$value . '_' . $key] = ot_get_option($value);

This will render something like

google_0 => google
google_1 => google
google_2 => google

This is not really a Wordpress question but more PHP. To solve this problem, you need to use $value as your key as well plus _id

You can do something like this

$options[$value . '_id'] = ot_get_option($value);

This is not really a Wordpress question but more PHP. To solve this problem, you need to use $value as your key as well plus _id

You can do something like this

$options[$value . '_id'] = ot_get_option($value);

EDIT

If you need $key to be the value of id, you can also try something like this

$options[$value . '_' . $key] = ot_get_option($value);

This will render something like

google_0 => google
google_1 => google
google_2 => google
1
source | link

This is not really a Wordpress question but more PHP. To solve this problem, you need to use $value as your key as well plus _id

You can do something like this

$options[$value . '_id'] = ot_get_option($value);