Jump to content

Need help with some variables


SE_Danny
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...