The below code keeps getting stuck in a loop. The addTextWrap() function returns whatever text value is leftover and into "$wrap". I'm trying to loop through $wrap and print the remainder to the screen. Am I doing this right
$wrap=$pdf->addTextWrap(15,$H,300,9,"$getnsiline[comments]");
$a=$H;
while($wrap !=""){
$wrap=$pdf->addTextWrap(15,$H,200,9,"$getnsiline[comments]");
$a=$a-12;
}