I'm assuming you've done some sort of query of the database already. In the example code I'm pretending that any given query result row has been fetched via mysql_fetch_assoc() or something similar to populate the array $row, and that one of the columns fetched was a "status" column, which will then be one of the elements of the $row array. Further, from your original message, I'm assuming that $row['status'] will therefore have some integer value: 0, 1, 2, etc.
The keys of the array $status correspond to the expected values of $row['status'] (i.e., the "status" column). Therefore, using the value of $row['status'] as an index to the $status array should give the desired value for the class attribute in the HTML being output.
The isset() part of the code is simply being used just in case some status value is returned from the DB that is not accounted for in the $status array, setting the class name to 'default' if it's not set.