src/Date.php
public function daySuffix($day)
  {
    $locale = \Locale::getDefault();
    
    switch($day){
      case 1:
        $nf  = new \NumberFormatter($locale, \NumberFormatter::ORDINAL);
        $day = $nf->format($day);
    }
    
    return $day;
  }
public function daySuffix($day)
  {
    $locale = \Locale::getDefault();
    
    switch($day){
      case 1:
        $nf  = new \NumberFormatter($locale, \NumberFormatter::ORDINAL);
        $day = $nf->format($day);
    }
    
    return $day;
  }
public function daySuffix ( $ day ) { $ locale = \ Locale :: getDefault ( ) ; switch ( $ day ) { case 1 : $ nf = new \ NumberFormatter ( $ locale , \ NumberFormatter :: ORDINAL ) ; $ day = $ nf -> format ( $ day ) ; } return $ day ; }
Adds day suffix.

@param   int     $day    The numeric day
@return   string  The suffixed day.
Adds day suffix .