Initial code based on existing project

Initial PHP that doesn't work yet. Need to detect amount of links, then
loop through text and replace each link with <a> tag wrapped links.