how about using the heredoc style for using strings :-) On Mon, Jul 20, 2009 at 5:30 PM, malayappa2000 <malayappa2000@xxxxxxxxx>wrote: > > > Hi > > we have the fallowing requierment > > <? > $des='<p><srong>hello</strong></p> > <p><srong>hello</strong></p>'; > //$des1=trim($des); > > //echo $des1; > $str=str_replace (" ", "",$des); > ?> > <script> > alert('<?php echo $des1;?>'); > </script> > > in the above code string is in two lines. we want to print this string in > an alert message. > > but we are not getting the string in alert > if we put the string in single fallowing manner > $des='<p><srong>hello</strong></p><p><srong>hello</strong></p>'; > getting the alert message > > Please provide help how to comnine number of rows in to a single row > > Thanks&Regards > SrinivasPMM > > > [Non-text portions of this message have been removed]