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
Moderator: General Moderators
Code: Select all
<?php
function make_b($html)
{
$html = Array("<b>","$html","</b>");
return $html;
}
$html = "Test";
list($opentag,$html,$closetag) = make_b($html);
echo $opentag.$html.$closetag;
?>