Strings

From: Date: Tue, 05 Jun 2007 17:50:15 +0000
Subject: Strings
Groups: php.general 
Request: Send a blank email to php-general+get-256111@lists.php.net to get a copy of this message
The following code works: <?php $image = ³²; if ($image == NULL) { print ³False!²; }else{ print ³$var²; } ?> However, this does not: <?php $image = ³²; if ($image == NULL) { print ³False!²; }else{ print ³<img src=\²$var\²>²; } ?> It seems that if I add a string, rather than just the variable, then does not work. I am getting an unexpected T_IS_EQUAL error. -- Thanks, Steve Marquez

« previous php.general (#256111) next »