code: public static function IMREAL($complexNumber)
      {
          $complexNumber = Functions::flattenSingleValue($complexNumber);
  
          $parsedComplex = self::parseComplex($complexNumber);
  
          return $parsedComplex['real'];
      }
docs: IMREAL.
  
  Returns the real coefficient of a complex number in x + yi or x + yj text format.
  
  Excel Function:
  IMREAL(complexNumber)
  
  @category Engineering Functions
  
  @param string $complexNumber the complex number for which you want the real coefficient
  
  @return float