PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
im just wondering if theres any major differences between the differeing methods and if i should be doing it the way i am and always done for eg an sql string for me would look like
I'm using both "{$var}" and ''.$var.'', depending on what I'm coding. Using concatenation, it's usually easier to spot variables, but when the strings contain multiple quotes, I prefer using "text '{$var}'" for readability and editing reasons.