When getting the guild array, the character array contains spec-name, but not class-name. Not the hardest thing to build a function to get the classname from the integer, but feel it should be built in.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When getting the guild array, the character array contains spec-name, but not class-name. Not the hardest thing to build a function to get the classname from the integer, but feel it should be built in.
$class = $character->getClassName();
It's already in there :)