:)

mail@pastecode.io avatar
unknown
php
2 years ago
218 B
6
Indexable
Never
<?php

$colores = ['blanco', 'verde', 'rojo'];

$losColores = implode(", ", $colores);

echo "$losColores";


echo "<ul>";

for($i = 0; $i < count($colores); $i++){

  echo "<li>$colores[$i]</li>";

};
   echo "</ul>";