first commit
This commit is contained in:
13
BusinessLogic/AddTodoList.php
Normal file
13
BusinessLogic/AddTodoList.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Menambah todo ke list
|
||||
*/
|
||||
function addTodoList(string $todo)
|
||||
{
|
||||
global $todoList;
|
||||
|
||||
$number = sizeof($todoList) + 1;
|
||||
|
||||
$todoList[$number] = $todo;
|
||||
}
|
||||
Reference in New Issue
Block a user