I'm curious which of the two examples is more preferred or it depends
entirely on someone style?
----------------
$x = 1;
#1)
if ($x) { $x = 0 }
#2)
$x = 0 if $x;
----------------
IMO first is more convenient and orthodox but that is just me. :)
--
Matija
- Re: "the right way" Matija Papec
- Re: "the right way" Paul
- Re: "the right way" Matija Papec
- Re: "the right way" Michael Fowler
- Re: "the right way" Peter Scott
- Re: "the right way" Paul
- Re: "the right way" dave hoover
- Re: "the right way" Paul Johnson
- Re: "the right way" dave hoover
- Re: "the right way" Matija Papec
