.<?php echo $problem; ?> </h4> <?php foreach ($questions as $i => $question) { ?> <?php $options = explode('|', $optionsAll[$i]); $id = $testLibraryId . "_" . $i; ?> <form> <h5> <?php $question = CommonFunctions::replaceSmallImage($questions[$i], $smallPictures, $smallPictureIndex); $question = CommonFunctions::replaceBigImage($question, $bigPictures, $bigPictureIndex); ?> <?php echo $i + 1; ?> ) <?php echo $question; ?> </h5> <?php foreach ($options as $option) { ?> <?php $value = substr(trim($option), 0, 1); $option = CommonFunctions::replaceSmallImage($option, $smallPictures, $smallPictureIndex); ?>