Skip to content

Instantly share code, notes, and snippets.

@luckydevilru
Created January 24, 2018 10:02
Show Gist options
  • Select an option

  • Save luckydevilru/325db3babe7a6c3634d1467460f2153e to your computer and use it in GitHub Desktop.

Select an option

Save luckydevilru/325db3babe7a6c3634d1467460f2153e to your computer and use it in GitHub Desktop.
Вывод даты на русском на php
$mes[0]="-";
$mes[1]="Январе";
$mes[2]="Феврале";
$mes[3]="Марта";
$mes[4]="Апреле";
$mes[5]="Мае";
$mes[6]="Июне";
$mes[7]="Июле";
$mes[8]="Августа";
$mes[9]="Сентебре";
$mes[10]="Октябре";
$mes[11]="Ноябре";
$mes[12]="Декабре";
$nednum=(int)date("w");
$mesnum=(int)date("m");
echo " ".date("d")." ".$mes[$mesnum]." ".date("Y")." ";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment