I'm getting images from database which holds path of the images each path is separated by ';' i need to ignore the last ';' because when it is displaying the images from db its getting last ';' and showing broken thumbnail in view
<?php
foreach (explode(';', $row['images']) rtrim($row['images'],';') as $key_img => $value_img)
{
echo Html::img(Yii::getAlias('@web').'/'.$value_img,[
' height'=> 500,
'width'=> 500,
]);
}
?>