hi,

try:

<?php
$this = "
        select *
                from xcxcxc
                where var='111'";

echo $this;
?>

i'd say it's even better than qq ;)

regards,
nuno



Carsten Gehling wrote:

> From: "Michael Hall" <[EMAIL PROTECTED]>
> Sent: Monday, March 26, 2001 9:36 PM
> 
> 
> 
>> Hi.  I'm a converted Perl guy.  While I generally like PHP better than
> 
> Perl,
> 
>> I do severely miss the Perl operator qq, which allowed statements (in my
>> case, lengthy SQL statements) to be written on multiple lines.
>> 
>> $this = qq|Select *
>> From xsdfs
>> Group by date
>> Order by id
>> |;
>> 
>> Is there anything similar to this in PHP?  I've been unable to find it if
>> there is.
> 
> 
> Check out this page:
> 
> http://php.net/manual/en/language.types.string.php
> 
> and read the paragraphs about the "here doc"´syntax. It might be what you're
> looking for.
> 
> - Carsten


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to