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. Quote Link to comment https://forums.phpfreaks.com/topic/289044-what-does-variable-do/ Share on other sites More sharing options...
Solution Jacques1 Posted June 7, 2014 Solution 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/289044-what-does-variable-do/#findComment-1482181 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.