Re: Strings

From: Date: Tue, 05 Jun 2007 18:23:51 +0000
Subject: Re: Strings
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-256119@lists.php.net to get a copy of this message
On Tue, 2007-06-05 at 11:04 -0700, Richard S. Crawford wrote: > On Tuesday 05 June 2007 10:50:15 Steve Marquez wrote: > > 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. > > Your string delimiters are very strange; I'm not sure if your code has those > in it or not, so I can't really diagnose your problem. > > At any rate, make sure your code looks like this: > > <?php > > $image = ""; > if ($image == NULL) { > print "False"; > } else { > print "<img src=\"$var\">"; > } > > ?> Heheh, it probably already "looks" like that... just isn't actually that :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#256119) next »