SEO when using a foreach loop to display links

Discussion in 'Search Engine Optimization' started by KL76, Jan 10, 2015.

  1. #1
    Is there a SEO disadvantage when you display links onto a webpage using a PHP foreach loop?

    In a manner like this:
    $link_array = array('<a href="webpage1.php">Link 1</a>', '<a href="webpage2.php">Link 2</a>', etc… );
    foreach ($link_array as $link) {
    echo $link . "<br>";
    }

    Or is it better (for SEO) to code the links the traditional way?
    Like this:
    <a href="webpage1.php">Link 1</a>
    <br>
    <a href="webpage2.php">Link 2</a>
    etc…

    For site management purposes, my preferred method is using a foreach loop to display the links. Thanks in advance
     
    KL76, Jan 10, 2015 IP