×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Влад Якуб
Added: Feb 14, 2022 8:27 AM
Modified: Nov 16, 2022 8:20 AM
Views: 399
Tags: no tags
  1. if (in_array($qnum, [301,304])) {
  2.             $from = 300;
  3.             $text = '';
  4.             $ans = Answers::get($from);
  5.             if (isset($ans['r98cVs'])) {
  6.                 $text= $ans['r98cVs'];
  7.             } else {
  8.                 preg_match('/r(\d+)c1/', key($ans), $matches);
  9.                 if (isset($matches[1])) {
  10.                     $text = strip_tags(App::$conf[$from]['rows'][$matches[1]]);
  11.                 }
  12.             }
  13.             $qconf['replace']['{gen'.$from.'}'] = $text;
  14.         }