life & disease

boolean toggle

…when switching don’t mind using:

if ($val==0) $val = $1; else $val = 0;

instead use:

$val = abs ($val-1);


  1. what-i-learnt-today reblogged this from ec1975 and added:
    While exploring Tumblr, I saw the following post:...It’s ok (except the $1 typo); but the...
  2. ec1975 posted this
To Tumblr, Love PixelUnion