Skip to content
Advertisement

Tag: code-readability

How to make SQL query more readable in PHP?

When you have a long fields in SQL query, how do you make it more readable? For example: Answer You can concatenate it like this to make it more readable: Note: Be sure while concatinating your query, don’t forget to leave spaces before you start a new line between your double quotes, else you’ll get query invalid error

Advertisement