Jump to content

How do you echo {variable} in the brackets?


JREAM

Recommended Posts

Im getting tired of conconcenating(sp)

 

Isnt there a way to do something like this: (I read it in my book in the past I think)

 

print 'my name is {$name} and I like to {$hobby}';

print "my name is {$name} and I like to {$hobby}";

 

Is there a different rule with single versus double quotes?

What am i doing wrong ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.