commit e0dc21312f6c4b4ed1c57b69e4dd879548f66dfc Author: MohamadAli011 Date: Wed Apr 12 11:55:10 2023 +0700 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/App.php b/App.php new file mode 100644 index 0000000..5d8f562 --- /dev/null +++ b/App.php @@ -0,0 +1,14 @@ + sizeof($todoList)) { + return false; + } + + for ($i = $number; $i < sizeof($todoList); $i++) { + $todoList[$i] = $todoList[$i + 1]; + } + + unset($todoList[sizeof($todoList)]); + + return true; +} diff --git a/BusinessLogic/ShowTodoList.php b/BusinessLogic/ShowTodoList.php new file mode 100644 index 0000000..e7385ba --- /dev/null +++ b/BusinessLogic/ShowTodoList.php @@ -0,0 +1,15 @@ + $value) { + echo "$number. $value" . PHP_EOL; + } +} diff --git a/Helper/Input.php b/Helper/Input.php new file mode 100644 index 0000000..4a9e401 --- /dev/null +++ b/Helper/Input.php @@ -0,0 +1,8 @@ +