i dont understand it 😐 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

i dont understand it 😐

Variables Variables are used as "containers" in which we store information. A PHP variable starts with a dollar sign ($), which is followed by the name of the variable. https://www.sololearn.com/discuss/1061936/?ref=app

13th Feb 2018, 8:03 PM
adelajda peshtani
adelajda peshtani - avatar
5 Answers
+ 6
Which one do you not understand: what a variable is or how to solve the String Manipulation challenge? Or was that the wrong link?
13th Feb 2018, 8:06 PM
Rrestoring faith
Rrestoring faith - avatar
+ 6
When making a variable you use the syntax (code) $myVariableName; For example, $money = 50.5; The variable named 'money' now stores the value 50.5. So, if we do: $total = 50 + $money; The variable 'total' becomes 100.5. Since 'money' held the value 50.5 and 50 + 50.5 is 100.5. echo $total; will output: 100.5. The variables are holding onto the values that they are given. This is why we say 'they are containers that store information'. The values were stored in the variable.
13th Feb 2018, 8:16 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
really i dont understand all the solo learn because i win with hacker
13th Feb 2018, 8:17 PM
adelajda peshtani
adelajda peshtani - avatar
+ 2
SoloLearn makes it too easy to "hack" the right answers to quiz questions without understanding the lesson. If you only give minimal effort to pass quizzes then you will gain only minimal understanding. A better way to use SoloLearn is to first gain full understanding of the topic, and then take the quiz to see whether you missed anything. Go as slowly as you need. You are not being timed in the lessons. If a quiz answer confuses you, then go back to the lesson to understand the answer. To learn better, experiment with the "Try it yourself" areas. Also read and ask questions in the Comments sections within the lessons.
14th Feb 2018, 12:52 PM
Brian
Brian - avatar
0
variables
13th Feb 2018, 8:07 PM
adelajda peshtani
adelajda peshtani - avatar