how can I retrieve this value? I need to do that if I will write the value to my database.
array(3) { [1]=> NULL [2]=> array(2) {
If your array is referenced as $myArray, you can get the string 39 via $myArray[0], i.e., this zeroth item.
$myArray
39
$myArray[0]