You can’t just echo the array that you create, you’ll need to loop through the values array
foreach ($values as $value) {
echo $value;
}
There may be other ways, but I don’t recall what the correct format for a google fonts url is and I don’t know what your values actually are.