Re: Re: PHP error on my site after transfer to another hosting
| From: | Christoph Michael Becker | Date: | Sun, 22 Dec 2013 21:59:50 +0000 |
| Subject: | Re: Re: PHP error on my site after transfer to another hosting | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322611@lists.php.net to get a copy of this message | ||
Jim Giner wrote:
> On 12/22/2013 4:37 PM, EyeLand wrote:
>> 2) on line 23 on index.php how can I define $title="$apartments_title"; ?
>>
> What are you trying to do with that statement? At the moment you are
> trying to put a dollar sign and the words 'apartments_title' into a
> variable named $title. Is that what you want to do? Pretty silly if
> you do.
$title = "$apartments_title";
is actually equivalent to
$title = (string) $apartments_title;
and not to
$title = '$apartments_title';
--
Christoph M. Becker