Php Why Is This Shortcode Function Returning The Data In The Wrong

Php Why Is This Shortcode Function Returning The Data In The Wrong