Código PHP:
require('fpdf.php');
class PDF extends FPDF
{
function FancyTable()
{
//Datos
function asd($a){
if ($a=='01'){echo 'bien';}}
for($c=0;$c<12;$c++)
{
$this->Cell(10,5,asd('01'),'LR',0,'C','');
$this->Ln();
}
}
}
$pdf=new PDF('L','mm','letter');
$pdf->AddPage();
$pdf->SetFont('Times','B',14);
$pdf->FancyTable();
$pdf->Output();
?>
en este caso tengo la funcion asd la cual estoy llamando dentro de Cell()
y me sale este error
Warning: Cannot modify header information - headers already sent by (output started at PDF.php:129) in fpdf.php on line 1017
FPDF error: Some data has already been output, can't send PDF file.
espero una ayudita .. gracias !!!