RE: [PHP] Is this kind of code safe?

From: Date: Tue, 17 Apr 2001 11:38:07 +0000
Subject: RE: [PHP] Is this kind of code safe?
Groups: php.general 
Request: Send a blank email to php-general+get-48936@lists.php.net to get a copy of this message
> <?php > $test="b"; > if ($test=="a"): > ?> > value is a > <?php > else: > ?> > value is not a > <?php > endif; > ?> > > It seems to work, ie it outputs different text depending on > the value of $test. But is it safe, can I rely on this > behaviour? Yes can rely on it, but I just think it's somewhat ugly. If I'm combing through a file looking for outputs, stepping through multiple ?> and <?php tags is very annoying. Jason

« previous php.general (#48936) next »