Hi,
Could someone tell me how I could reference a variable that is outside a function?
I have these three lines of code
$pdf->SetFont('Arial','B',10);
$pdf->Cell(55,4,$name,'B',0,'L');
$pdf->Ln(10);
The problem is that when I put them in a function they not longer work because $pdf becomes a local instance...
ie.
function heading($name){
$pdf->SetFont('Arial','B',10);
$pdf->Cell(55,4,$name,'B',0,'L');
$pdf->Ln(10);
}
Thanks!
SL