original_string: public static function dayStringToNumber($day)
      {
          $strippedDayValue = (str_replace(self::$numberSuffixes, '', $day));
          if (is_numeric($strippedDayValue)) {
              return (integer) $strippedDayValue;
          }
          return $day;
      }
code: public static function dayStringToNumber($day)
      {
          $strippedDayValue = (str_replace(self::$numberSuffixes, '', $day));
          if (is_numeric($strippedDayValue)) {
              return (integer) $strippedDayValue;
          }
          return $day;
      }
code_tokens: public static function dayStringToNumber ( $ day ) { $ strippedDayValue = ( str_replace ( self :: $ numberSuffixes , '' , $ day ) ) ; if ( is_numeric ( $ strippedDayValue ) ) { return ( integer ) $ strippedDayValue ; } return $ day ; }
docstring: Strips an ordinal froma numeric value
  
  @param     string    $day      Day number with an ordinal
  @return    integer|string      The integer value with any ordinal stripped, or the original string argument if it isn't a valid numeric
docstring_tokens: Strips an ordinal froma numeric value