IDNetters Forums

Technical News & Discussion => Windows News & Discussion => Topic started by: psp83 on Oct 21, 2010, 12:18:56

Title: Just a little something for you
Post by: psp83 on Oct 21, 2010, 12:18:56
$data['sci'] = ($data['client_id'] < 1 ? (segment(4) > 0 && $id < 1 ? segment(4): false) : $data['client_id']);


Hehe, Just been re doing some old code and beginning to wonder what I was drinking when I wrote some of it  :eek4:
Title: Re: Just a little something for you
Post by: Rik on Oct 21, 2010, 12:22:52
Er, yes. ;D
Title: Re: Just a little something for you
Post by: psp83 on Oct 21, 2010, 12:25:32
opps wrong forum section, please feel free to move to whatever section you think best, eg. The WTF section  ;D

Title: Re: Just a little something for you
Post by: Simon on Oct 21, 2010, 12:30:49
Great idea for a new board, Paul!  ;D
Title: Re: Just a little something for you
Post by: Glenn on Oct 21, 2010, 12:32:58
It could be a busy board.
Title: Re: Just a little something for you
Post by: Rik on Oct 21, 2010, 12:38:13
Especially this week. ;D
Title: Re: Just a little something for you
Post by: esh on Oct 24, 2010, 14:05:23
Mmmmm, ternary operations. Looks like PHP.
Title: Re: Just a little something for you
Post by: psp83 on Oct 24, 2010, 14:42:01
Yeah its PHP.