SEO - Links coded on a page using a foreach loop VS links written manually onto a page

by KL76
1 replies
  • SEO
  • |
Links on a website are a very important aspect of the an SEO strategy. Is there any SEO disadvantage of displaying links using a PHP foreach loop, like this:

$land_for_sale = array('<a href="url.com/texas_land">Land in Texas</a>', '<a href="url.com/colorado_land">Land in Colorado</a>', '<a href=url.com/california_land">Land in California</a>');

foreach ($land_for_sale as $links) {
echo $links . "<br>";
}


as opposed to manually coding them onto a page the standard way:
<a href="url.com/texas_land">Land in Texas</a>
<a href="url.com/colorado_land">Land in Colorado</a>
<a href="url.com/california_land">Land in California</a>

This may sound like an odd question, but using the foreach loop method would make site management for a client of mine easier
#coded #foreach #links #loop #manually #page #seo #written
  • Profile picture of the author nettiapina
    Originally Posted by KL76 View Post

    This may sound like an odd question, but using the foreach loop method would make site management for a client of mine easier
    It does sound like an odd question. Google doesn't see your foreach loops, so why would they affect the rankings in any way? If you mess up the HTML structure in the process, then it might of course.

    You seem like a newbie to the world of web programming. Please do your client a huge favour, and read up on security.
    Signature
    Links in signature will not help your SEO. Not on this site, and not on any other forum.
    Who told me this? An ex Google web spam engineer.

    What's your excuse?
    {{ DiscussionBoard.errors[10107737].message }}

Trending Topics