I am creating some options in the functions.php file. I created a function that gets input on the front end, puts the values into a new array and returns them to the front end. I am trying to figure out how to return the values like an associative array. For example, I want to the array to return like this
Array ( [dribble_id] => dribble [google_id] => google [facebook_id] => facebook [twitter_id] => twitter )
the below function returns them like so
Array ( [0] => dribble [1] => google [2] => facebook [3] => twitter )
Here is the function that returns them
function ritual_get_options()
{
$arg_list = func_get_args();
$options = array();
foreach( $arg_list as $key => $value){
$options[] = ot_get_option($value);
}
return $options;
}
Do you now how I can do this?