Thus far, I've been able to pull from a text file:
sample of text file:
Code: Select all
Introduction to Databases Using Microsoft Access|CEP #123-B|(10 weeks) 2.4 Continuing Education Units (CEU)|Maurice E. Kennedy, Jr.
The Harlem Renaissance Remembered|CEP #264|Tyrone Stevens Drummond
African-American Reparations: Here & Now|CEP #286 (6 weeks)|Mr. Robert Bell, Mr. Milton McGriff
African American Male/Female Relationships: Surviving the New Millennium|CEP #04-A (8 weeks)|Dara Baye
Hypnotherapy:The Power of the Subconscious Mind|CEP #259|Instructor: J. Joanne Yohannes
The Science of Political Organizing and Organizational Building|CEP #308 (5 weeks)|Instructor: Odinga Mukhtar
Basic Design/Sewing|CEP #213-A (8 weeks)|Instructor: Suzi WhiteCode: Select all
<?
$file = "classes.txt";
$pull = file($file);
foreach ($pull as $final)
{
$final_val = explode("|",$final);
foreach ($final_val as $output)
{
print "<b>$output</b><br />";
}
print "<br />";
}
?>Introduction to Databases Using Microsoft Access
CEP #123-B
(10 weeks) 2.4 Continuing Education Units (CEU)
Maurice E. Kennedy, Jr.
The Harlem Renaissance Remembered
CEP #264
Tyrone Stevens Drummond
...and so on and so forth
I have two questions, first can I get a pointer as how to have the class title bold, the class number italicized? In other words, how to apply different things to elements in my array
and second, is the above code effiecient?
Thank you much