Jump to content

Code Tag PHP Issue


Recommended Posts

Okay so, I recently just found this out, but putting a ?> inside a string doesn't work.

 

<?php
$string = 'some static text here and here is a closing PHP tag ?> ...';

<?php
$string2 = "'some static text here and here is a closing PHP tag ?> ...'";

<?php
$string2 = "some static text here and here is a closing PHP tag ?> ...";

<?php
$string = 'some static text here and here is a closing PHP tag ?> ...';
$string2 = "'some static text here and here is a closing PHP tag ?> ...'";

 

It's messing up either the first quote or the last. Quote my post to see.

 

Something weird is up. Is this our issue or SMF's?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.