List Membership Levels Via PHP

I need to be able to grab an array or object that has a list of all membership levels currently available. What function can I use to do this? It doesn't need to be particularly pretty, as long as I can get the main access levels as an array.

Thanks!