Skip to content

Instantly share code, notes, and snippets.

@luberius
Last active May 31, 2020 17:15
Show Gist options
  • Select an option

  • Save luberius/b0d651a7afec55e96d6802e53a01fe05 to your computer and use it in GitHub Desktop.

Select an option

Save luberius/b0d651a7afec55e96d6802e53a01fe05 to your computer and use it in GitHub Desktop.

Revisions

  1. luberius revised this gist May 31, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions get_indonesian_month.php
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    <?php

    function getMonthName($month) {
    $month = 'Januari';

    switch ($month) {
    case 1:
    $month = 'Januari';
    @@ -40,6 +38,8 @@ function getMonthName($month) {
    case 12:
    $month = 'Desember';
    break;
    default:
    $month = 'Invalid';
    }

    return $month;
  2. luberius revised this gist May 31, 2020. No changes.
  3. luberius revised this gist May 31, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions get_indonesian_month.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    <?php

    function getMonthName($month) {
    $month = 'Januari';

  4. luberius created this gist May 31, 2020.
    44 changes: 44 additions & 0 deletions get_indonesian_month.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    function getMonthName($month) {
    $month = 'Januari';

    switch ($month) {
    case 1:
    $month = 'Januari';
    break;
    case 2:
    $month = 'Februari';
    break;
    case 3:
    $month = 'Maret';
    break;
    case 4:
    $month = 'April';
    break;
    case 5:
    $month = 'Mei';
    break;
    case 6:
    $month = 'Juni';
    break;
    case 7:
    $month = 'Juli';
    break;
    case 8:
    $month = 'Agustus';
    break;
    case 9:
    $month = 'September';
    break;
    case 10:
    $month = 'Oktober';
    break;
    case 11:
    $month = 'November';
    break;
    case 12:
    $month = 'Desember';
    break;
    }

    return $month;
    }