Howto get the attachment files?

i try to build a pages for summary report.

the $task array doesn’t show that files.

Array
(
    [nb_comments] => 0
    [nb_files] => 1
    [nb_subtasks] => 1
    [nb_completed_subtasks] => 0
    [nb_links] => 1
    [nb_external_links] => 0
    [is_milestone] => 
    [id] => 5
    [reference] => 
    [title] => New Introduction Words
    [description] => Lorem ipsum doler simtum.
    [date_creation] => 1611718539
    [date_modification] => 1611757922
    [date_completed] => 
    [date_started] => 0
    [date_due] => 0
    [color_id] => lime
    [project_id] => 1
    [column_id] => 2
    [swimlane_id] => 1
    [owner_id] => 3
    [creator_id] => 1
    [position] => 1
    [is_active] => 1
    [score] => 0
    [category_id] => 1
    [priority] => 0
    [date_moved] => 1611718539
    [recurrence_status] => 0
    [recurrence_trigger] => 0
    [recurrence_factor] => 0
    [recurrence_timeframe] => 0
    [recurrence_basedate] => 0
    [recurrence_parent] => 
    [recurrence_child] => 
    [time_estimated] => 0
    [time_spent] => 0
    [assignee_username] => rita
    [assignee_name] => Rita
    [assignee_email] => 
    [assignee_avatar_path] => 
    [category_name] => Debug
    [category_description] => 
    [category_color_id] => blue
    [column_name] => Ready
    [column_position] => 2
    [swimlane_name] => Default swimlane
    [project_name] => Workbench
    [tags] => Array
        (
        )

    [subtasks] => Array
        (
            [0] => Array
                (
                    [id] => 3
                    [title] => do the estimate
                    [status] => 0
                    [time_estimated] => 0
                    [time_spent] => 0
                    [task_id] => 5
                    [user_id] => 3
                    [position] => 1
                    [username] => rita
                    [name] => Rita
                    [timer_start_date] => 0
                    [status_name] => Todo
                    [is_timer_started] => 
                )

        )

)

howto get the attachment files?

thanks in advance

thats too vague for me to form an answer.