Re: 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]

 



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]


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

  Powered by Linux