Jump to content

Need help with some variables


SE_Danny

Recommended Posts

You can assign $google like that. The only problem I see is that you are not ending your lines with a semi-colon. Are you asking if you can do this:

$b = 'http://www.google.com';$google = $b;

If you are asking that, the answer is yes.

Link to comment
Share on other sites

Maybe you mean something like this:
$a = 'google';$b = 'http://google.com';$$a = $b;echo $google // Prints 'http://google.com'

It's legal in PHP.

Yeah that's what I meant :) Thanks a lot dude !@Fmdpa, of course I know how to assign a variable. :) I just forgot the ';' But thanks for your reply !
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...