Hi, I really need your help for my assignment. I got 4 variables extracted from RSS, for example:
$title = "Shooter of US teen appears in court"; $author = "Stephanie Kennedy"; $date = "Fri, 13 Apr 2012 06:00:16"; $content = "A Hispanic neighbourhood watch volunteer, charged with sec +ond-degree murder over the shooting death of an unarmed black teenage +r in the United States, has appeared briefly in court for the first t +ime.";
And I'd like the output (just on the terminal, not into a file) to be like this:
How can I do that? Please, help me! Thanks!--------------------------------------------------------------------- | TITLE | Shooter of US teen appears in court | --------------------------------------------------------------------- | AUTHOR | Stephanie Kennedy | --------------------------------------------------------------------- | DATE | Fri, 13 Apr 2012 06:00:16 | --------------------------------------------------------------------- | CONTENT | A Hispanic neighbourhood watch volunteer, charged with | | | second-degree murder over the shooting death of an | | | unarmed black teenager in the United States, has | | | appeared briefly in court for the first time. | ---------------------------------------------------------------------
In reply to Neat format and word wrap by jesus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |