# Echo PHP tags with php

**URL:** https://forum.kirupa.com/t/echo-php-tags-with-php/226243
**Category:** programming
**Created:** [May 19, 2007, 4:59am UTC](https://forum.kirupa.com/t/echo-php-tags-with-php/226243 "2007-05-19T04:59:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Catalist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/catalist/32/2148_2.png) [@Catalist](https://forum.kirupa.com/u/Catalist)
#### Post date: [May 19, 2007, 4:59am UTC](https://forum.kirupa.com/t/echo-php-tags-with-php/226243/1 "2007-05-19T04:59:15Z")

</div>

Hello, I’d like to echo a piece of code someone could copy and past into the front end of a website. The backend will need to output little snippets of code and I’m not sure how to do something like

\<?php

echo “\<?php”;

echo “$result = …”;

echo “?\>”;

?\>

See how this might not work? Well it doesn’t, so does anyone know a workaround. Thanks!
