Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It is not entirely clear what to output.
If you view a beautiful print_r array, then using <pre>
If the input is in html, then use column
css or using js
Alternatively use ul/li
<ul>
<?php foreach($arProps as $strPropName => $strPropValue): ?>
<li class="row">
<span class="column"><?php echo $strPropName ?></span>
<span class="delimiter">:</span>
<span class="column"><?php echo $strPropValue ?></span>
</li>
<? endforeach; ?>
</ul>
//Как вариант
$i = 0; $br = '';
<?php foreach($arProps as $strPropName => $strPropValue) { ?>
$i++;
if($i%2 == 0) ? $br = '<br>' : $br = '' ;
<?= "{$strPropName} : {$strPropValue}".$br; ?>
<?php } ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question