Hi all,
In all my time with PHP I have only ever seen one way of adding a variable onto the end of the string:
$string = "hello" . $variable;
However, recently I came across another method, which was used in the context of constructing a mySQL query. Can someone explain the difference? It seems like a much easier way to achieve the same result:
$sql = "SELECT * FROM {$table}";