I was wondering which of these phrases is/are correct:
- assign a variable to a value
- assign a value to a variable
I'd say the second is correct, but I'm not a native speaker. A quick Google search reveals thousands of results such as "assign a variable to the file content", but another search returns a lot of results for the other word order ("assign a value to HTML input field").
Which of these two phrases is correct? Or are both correct?