<?php
// Define tasks and subtasks
$tasks = array(
array(
'task' => 'Task 1',
'subtasks' => array(
'Subtask 1.1',
'Subtask 1.2',
'Subtask 1.3'
)
),
array(
'task' => 'Task 2',
'subtasks' => array(
'Subtask 2.1',
'Subtask 2.2'
)
)
);
// Display tasks and subtasks
foreach ($tasks as $task) {
echo $task['task'] . ":\n";
foreach ($task['subtasks'] as $subtask) {
echo "- $subtask\n";
}
echo "\n";
}
?>
0 Comments