foreach ($... as $key => $...) {
echo '<input type="password" id="show-text- ' . $key . ' " value="' .$text. '" />
<a href="#" id="s-h- ' . $key . ' ">Показать текст</a>
...';
}
$i = 0;
foreach ($... as $...) {
echo '<input type="password" id="show-text- ' . $i . ' " value="' .$text. '" />
<a href="#" id="s-h- ' . $i . ' ">Показать текст</a>
...';
$i++;
}
'modules' => [
'account' => [
'class' => 'app\modules\account\Module',
],
],
в PHP есть готовые решения, соедение с 1С настраивается за пару строчек кода
гуглите SOAP