{"id":22547600,"url":"https://github.com/firmanjs/essay-test","last_synced_at":"2026-01-07T22:03:06.550Z","repository":{"id":116873327,"uuid":"263559870","full_name":"firmanJS/essay-test","owner":"firmanJS","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-13T08:10:57.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T09:41:36.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firmanJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-13T07:42:19.000Z","updated_at":"2020-05-13T08:10:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"987f5b64-5700-4617-854a-84db3e98aab9","html_url":"https://github.com/firmanJS/essay-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fessay-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fessay-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fessay-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firmanJS%2Fessay-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firmanJS","download_url":"https://codeload.github.com/firmanJS/essay-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999595,"owners_count":20707568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T15:12:25.301Z","updated_at":"2026-01-07T22:03:06.489Z","avatar_url":"https://github.com/firmanJS.png","language":null,"readme":"# essay-test\n\n1. ```php \n    $v = '1,2,3,4,5,6,7';\n    $sum = array_sum(explode(',', $v));\n    echo $sum;\n    ```\n1. a. Email\n   ```php\n   $email = \"test@gmail.com\";\n   if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n       echo \"valid email address\";\n   } else {\n      echo \"not a valid email address\";\n   }\n   ```\n   \n   b. Phone\n   ```php\n   $phone = '123';\n   if (is_numeric($phone)) {\n      echo \"valid phone number\";\n   } else {\n      echo \"not a valid phone number\";\n   }\n   ```\n   \n   c. Name\n   ```php\n   $name = 'example';\n\n   if(preg_match(\"/^([a-zA-Z' ]+)$/\",$name)){\n      echo 'Valid name.';\n   }else{\n      echo 'Invalid name.';\n   }\n   ```\n  1.\n  1.\n  1. cara cepat -\u003e `ob_start();`\n  1. `7`\n  1. - Model -\u003e Bertugas untuk mengatur, menyiapkan, memanipulasi dan mengorganisasikan data (dari database) sesuai dengan     instruksi dari controller.\n     - View -\u003e Bertugas untuk menyajikan informasi (yang mudah dimengerti) kepada user sesuai dengan instruksi dari controller.\n     - Controller -\u003e Bertugas untuk mengatur apa yang harus dilakukan model, dan view mana yang harus ditampilkan berdasarkan permintaan dari user. Namun, terkadang permintaan dari user tidak selalu memerlukan aksi dari model. Misalnya seperti menampilkan halaman form untuk registrasi user.\n  1. Next latter is T\n  1.\n  1.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fessay-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirmanjs%2Fessay-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirmanjs%2Fessay-test/lists"}