How to show data on a table

I found what was wrong, just switch this:

  function column_default($item, $column_name){
    switch($column_name){
        case 'rating':
        case 'director':
            return $item[$column_name];
        default:
            return print_r($item,true); //Show the whole array for troubleshooting purposes
    }
}

To this:

function column_default($item, $column_name){
    switch($column_name){
        case 'id':
            return $item['plan_id'];
        case 'plano':
            return $item['plan_name'];
        case 'dias':
            return $item['plan_days'];
        case 'valor':
            return 'R$ ' . number_format($item['plan_price'], 2 ,',','.');
        default:
            return print_r($item,true); //Show the whole array for troubleshooting purposes
    }
}

error code: 523