Code snippet, whats the function?

Discussion in 'PHP' started by login, Feb 4, 2008.

  1. #1
    What is this part of a code indicating? That all links on page will be nofollow?


    if(url != ''){
    s+='<a href="'+url+'" title="'+url+'" rel="nofollow" target="_blank">'+name+'<\/a>';
    }else if(email != ''){
    s+='<a href="mailto:'+email+'" rel="nofollow">'+name+'<\/a>';
    }else if(name!=''){
    s+=name;
    }else{
    s+='Anonym';
    }
     
    login, Feb 4, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    This is Javascript, and not PHP.

    And this part seems to be creating links (yes, with nofollow), but to tell exactly what it does, you'd have to post the entire code.
     
    nico_swd, Feb 4, 2008 IP