[Solved] any idea to transfer this code to php or js using while or something? [closed]


Here is a PHP example

<?php
    $arr_data['Accion'] = array('picture' => 'img/thumbs/megamovieshd.jpg', 'html' => "https://stackoverflow.com/questions/34283005/Accion.html");
    $arr_data['Bob Esponja'] = array('picture' => 'img/thumbs/mega_bobesponja.jpg', 'html' => 'Bob-Esponja.html');
?>

<div class="contenedor canales">
<?php foreach($arr_data AS $name => $arr_details){ ?>
        <div class="thumb">
            <a href="https://stackoverflow.com/questions/34283005/<?php echo $arr_details["html']; ?>">
                <img title="<?php echo $name; ?>" src="https://stackoverflow.com/questions/34283005/<?php echo $arr_details["picture']; ?>" alt=""/>
            </a>
            <h4 class="txt-oculto">
                <a title="<?php echo $name; ?>" href="https://stackoverflow.com/questions/34283005/<?php echo $arr_details["html']; ?>"><?php echo $name; ?></a>
            </h4>
        </div>
<?php } ?>
</div>

1

solved any idea to transfer this code to php or js using while or something? [closed]