nowdoc_006.phpt 443 B

1234567891011121314151617181920212223
  1. --TEST--
  2. braced complex variable replacement test (nowdoc)
  3. --FILE--
  4. <?php
  5. require_once 'nowdoc.inc';
  6. print <<<'ENDOFNOWDOC'
  7. This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
  8. ENDOFNOWDOC;
  9. $x = <<<'ENDOFNOWDOC'
  10. This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
  11. ENDOFNOWDOC;
  12. print "{$x}";
  13. ?>
  14. --EXPECT--
  15. This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
  16. This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.