please provide help how to comibing string in number of rows in to single row

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


  


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux