Yes.
I think the most common use case is using MySQL. For example:
$result = mysql_query("SELECT username FROM user");
while ($user = mysql_fetch_assoc($result)) {
echo $user['username'] . "\n";
}
This works because it $useris the result of an assignment. The value, regardless of what is stored in your destination, is then used as a conditional. In other words,
var_dump($i = 5);
$i = 5;
var_dump($i);
Both will print int(5), obviously.
source
share