E_Leeder Posted June 7, 2014 Share Posted June 7, 2014 Simple question I know, but suprisngly hard to google for because {} is used for so much more in php, like if, foreach, etc. In the code I read it in it looked like it was evaluating the variable and then turning it into plain text to then be interpreted as-is in the script... but I was confident in this assessment. Link to comment https://forums.phpfreaks.com/topic/289044-what-does-variable-do/ Share on other sites More sharing options...
Jacques1 Posted June 7, 2014 Share Posted June 7, 2014 The PHP manual explains it in the chapter about strings. A more exotic use case for this syntax is also variable variables. Link to comment https://forums.phpfreaks.com/topic/289044-what-does-variable-do/#findComment-1482139 Share on other sites More sharing options...
E_Leeder Posted June 8, 2014 Author Share Posted June 8, 2014 Thank you. Link to comment https://forums.phpfreaks.com/topic/289044-what-does-variable-do/#findComment-1482181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.