echo language construct is discouraged. (PHP)



PHP Snippet 1:

print_r( $StateList->state_name )

PHP Snippet 2:

return $StateList->state_name