//ads: ?> echo language construct is discouraged. (PHP)phpcodacy PHP Snippet 1:print_r( $StateList->state_name ) PHP Snippet 2:return $StateList->state_name