Ben aşağıdaki kodu heredoc çalışıyorum:
<?php
//some php
//some more php
if (some condition) {
?>
<label>CMKS1<?php echo $CMKS1_CMKS2_space; ?>CMKS2</label>
<input name="cmks1" type="text" class="base-cls <?php if ($err1) echo "err-cls"; ?>" />
<input name="cmks2" type="text" class="base-cls <?php if ($err2) echo "err-cls"; ?>" />
<?php
}//if
//some final php here
?>
ama ben etiket satırına $CMKS1_CMKS2_space
değişken ve 2 üzerinde şaşırıp eğer koşullu ifadeler input name cmks1 and cmks2
. Yorumlu metin biçimi incelikle bu idare edebilmek mi? Örneğin yorumlu metin içinde etiket hat bu gibi görünecektir:
<label>CMKS1$CMKS1_CMKS2_spaceCMKS2</label>
ya da ben fazladan ihtiyari alan uygulamak gerekir:
<label>CMKS1 $CMKS1_CMKS2_space CMKS2</label>
2 giriş hatlarında ise koşullu ifadeleri gelince, ben nasıl bu liman bile emin değilim ...
TIA