Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Is there something like perl's: $x = << "endtag"; ??? From: Alan Sparks (asparks <email protected>)
Date: 07/23/98

Closest thing I've seen is that the quotes can span physical lines... I've
done

echo "
this is
a test
";

with good success. Don't know if that's a documented feature, tho.
-Alan

-----Original Message-----
From: Richard Yumul <chewie <email protected>>
To: php3 <email protected> <php3 <email protected>>
Date: Thursday, July 23, 1998 4:12 PM
Subject: [PHP3] Is there something like perl's: $x = << "endtag"; ???

>In PERL, you can say,
>
>-----------------
>$x = << "endtag";
>
>block of text...
>block of text...
>block of text...
>
>endtag
>-----------------
>
>and basically a block of text is stored in the variable $x.
>
>Is there something in PHP that will accomplish this too?
>
>TIA,
>Rich Yumul
>
>-------------------------
>Richard M. Yumul
>mailto:chewie <email protected>
>DTAI Incorporated
>http://www.dtai.com
>(619)542-1700 · fax:(619)542-8675
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive:
http://www.php.net/mailsearch.php3
>
>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3