Hello
Im trying to find best practices to write PHP.
I just wonder is this a bad habit.
For example, processing variables.
$var = 1
$var = doSomething($var);
$var = doSomething2($var);
$var = doSomething3($var);
It looks a bit awful.
Here is a example of a real code that I just did:
$this->rSum = explode(",", $this->options["rSum"]);
$this->rSum = array_combine(array_values($this->rSum), array_fill(0, count($this->rSum), 0));
If someone could pass me some good tutorials of writing cleaner code generally it would be nice!
Its me again asking stupid questions. :)