helllo
I am sure there is a more 'simple' way,
but this would work:
$str = ''; // empty string
foreach( $node['field_cw_days'] as $subarray ){
$str .= $subarray['value'] . '-'; // add to string
}
$str = rtrim($str, '-'); // 'right trim' away the last '-'
// test
echo $str;
about such arrays, with plenty of dimensions, when could be less:
there is something not optimal to use more dimension, than necessary
so, the setup is not perfect, from beginning
in your case,
you would only need 1 array, without subarrays,
with number indexed elements
array(
[0] => 'mon',
[1] => 'fri',
[2] => 'sun'
)
string = implode( '-', array );