Re: Heredocs

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

 



On Wed, 29 Aug 2007 13:01:07 +0200, RodgerW <rodger.wills@xxxxxxxxx> wrote:
> Are heredocs supported by PHP 5.2.3 running in WinXP/Apache2.2.4 ?
> I prrint via heredocs and its not working. Print with single quotes and
> double quotes work.
> 
> 		<p>
> 		<h6>string init method 3: heredocs</h6>
> 		<?php
> 			print <<< END
> 				Test
> 			END;
> 		?>
> 		</p>
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Remove the spaces before END;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux