problem with dollar sign php

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: problem with dollar sign php

Post by seandisanti » Tue Apr 22, 2014 9:09 pm

concatenate the value with the rest of your string:

Code: Select all

$whatever = 'i use $ for S because i am kewl';

echo 'the variable $whatever contains the value "' . $whatever . '"';


***edit*** just surrounded the value with quotes to demonstrate that too

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests