newbie question: what's wrong on this code?
Posted: Thu Dec 19, 2002 9:10 am
hi there, I'm just starting to learn php and I've got the first problem.
what's wrong on this code?:
<?php
function make_b(&$html)
{
$html = Array("<b>",$html,"</b>");
}
$html = "Test";
list($opentag,$html,$closetag) = make_b($html);
echo $opentag.$html.$closetag;
?>
thanks for any helpful hints,
xant
what's wrong on this code?:
<?php
function make_b(&$html)
{
$html = Array("<b>",$html,"</b>");
}
$html = "Test";
list($opentag,$html,$closetag) = make_b($html);
echo $opentag.$html.$closetag;
?>
thanks for any helpful hints,
xant