View Single Post
Old 2012-04-19, 06:54 AM   #3
flowersgone
Are you sure you're an accredited and honored pornographer?
 
Join Date: Sep 2008
Posts: 67
I think sparky's answer is good but addresses a slightly different question. Perhaps this is closer to the question as posed:

Code:
<?php
$ckeys = array();
$ckeys['keywords'] = <<<EOT
word1
word2
word3
word4
EOT;

foreach (explode("\n", $ckeys['keywords']) as $i => $w) {
    $id = "cell" . ($i+1);
    echo "<p id='$id'>$w</p>\n";
}
?>
fg
__________________
Thank you for checking out my:
Portfolio and Tech Services
flowersgone is offline   Reply With Quote