Php Get Attribute From Array Python Example Class Action