You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Lc\ShopBundle\Services;
  3. class Utils
  4. {
  5. public static function getDayByNumber($number)
  6. {
  7. $daysArray = [
  8. 1 => 'Lundu',
  9. 2 => 'Mardi',
  10. 3 => 'Mercredi',
  11. 4 => 'Jeudi',
  12. 5 => 'Vendredi',
  13. 6 => 'Samedi',
  14. 7 => 'Dimanche'
  15. ] ;
  16. if(isset($daysArray[$number])) {
  17. return $daysArray[$number] ;
  18. }
  19. return '' ;
  20. }
  21. }