You are here

private function Date::monthName in PersianTools 7

returns names of the month

@access private

Parameters

int $monthValue:

Return value

string

1 call to Date::monthName()
Date::format in includes/Date.php
this is a clone of the internal php function date() with a few exceptions in the acceptable parameters

File

includes/Date.php, line 356

Class

Date

Namespace

Shamsi

Code

private function monthName($monthValue) {
  $monthAlpha = array(
    1 => 'فروردين',
    'ارديبهشت',
    'خرداد',
    'تير',
    'مرداد',
    'شهريور',
    'مهر',
    'آبان',
    'آذر',
    'دي',
    'بهمن',
    'اسفند',
  );
  return $monthAlpha[$monthValue];
}