• Resolved maxcondor

    (@maxcondor)


    Hello
    I created a simple snippet with the following code:
    ============
    $color = “red”;
    <p>Roses are <?=$color?></p>
    ============

    because it does not work?

Viewing 1 replies (of 1 total)
  • Hi @maxcondor,
    Thanks for using Post Snippets, you are using the wrong PHP code.
    Please replace the code with this code snippet and let us know.

    $color = ‘ red’;
    echo'<p>’;
    echo ‘Roses are’ . $color;
    echo ‘</p>’;

Viewing 1 replies (of 1 total)
  • The topic ‘syntax PHP’ is closed to new replies.