tengo un array con nombres los cuales utilizo para crear unos links pero al utilizar foreach me multiplica la cantidad del array.
Tengo 4 indices y me devuelve 36 links
Código PHP:
$links = array(
'home',
'videos',
'images',
'links',
)
foreach ($links as $link) {
echo $link;
}
Código:
Que estoy haciendo mal?home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links home videos images links
Gracias