core/Lang.class.php
private static function replace(string $text, Array $data = null): string {
    if (!empty($text) && count($data)) {
      if ($metaText = (new ReplaceText())->replace($text, $data)) {
        $text = $metaText;
      }
    }
    return $text;
  }
private static function replace(string $text, Array $data = null): string {
    if (!empty($text) && count($data)) {
      if ($metaText = (new ReplaceText())->replace($text, $data)) {
        $text = $metaText;
      }
    }
    return $text;
  }
private static function replace ( string $ text , Array $ data = null ) : string { if ( ! empty ( $ text ) && count ( $ data ) ) { if ( $ metaText = ( new ReplaceText ( ) ) -> replace ( $ text , $ data ) ) { $ text = $ metaText ; } } return $ text ; }
- Replace TAGs in text
@param string $text Text with TAG(s)
@param string $data TAG(s) value(s)
@return sting Text TAG(s) replaced
- Replace TAGs in text