PHP help with $values
Go to solution
Solved by bomberblyat,
15 hours ago, leodaniel said:Always whats more human (you and me ) readable.
Name your variables appropriately (having var1-var15 is bad, its hard to understand what they each represent), always step by step so that it's easy to understand.
Just try to make it simple. Imagine you would have to look at your script again in 10 years... how long would you take to understand it (goal is to shorten this time). I think it's important to always code with that in mind.
In the 2. code example it's really hard to understand what the code does, what the variables are. It takes quit some time to understand what it does.
i fixed it the code works it was pain in the ass, but it works
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now