I'm studying PHP and I came across a feature that does not exist in Python (I do not know in other languages), which is the assignment in a conditional test:
$file = fopen("arquivo.txt", "w");
while($row = fgets($file)){
...
}
Correct me if I am wrong but in a conditional test, it searches to check the result of the condition or the state of the object eg an empty list is false
, what we call Truthy and Falsey in Javascript. My doubts are: