Well, I am a front end guy, but I have an interest in everything so i am trying to figure out how to use PHP for some mundane tasks…basically what i want to do is split a list (delimited by a comma) and insert the values of the list into params/attribute in so i only have to copy paste a list once instead of the thousands of urls over and over…Here is where i got stuck:
if (isset($_POST)) {
$urls = trim($_POST);
$arr = explode( ",", $urls);
$count= count($arr);
// need to loop through the array here...don't know how...i was thinking a for or while loop..??
echo '' . thearrayitem[0] . '';
}
?>
// It should output something like:
http://www.link1.com
http://www.link2.com
http://www.link3.com
Except “thearrayitem[0]” should be the index as a variable so it can iterate through the items…
Any help would be much appreciated thanks gin advance!