Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. setlocale(LC_TIME, 'rus_RUS');
  2. $date = '2013-01-01';
  3. $utf8 = strftime("%A, %d/%m/%Y", strtotime($date));
  4. echo"utf8 = $utf8";
  5.  
  6. utf8 = �������, 01/01/2013
  7.  
  8. $textwin1251 = iconv('windows-1251', 'UTF-8', $ut8);
  9. echo $textwin1251;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement