How to find a variable that works?

well that’s assigning an array to $result so you’d expect it to echo that it is an Array.