Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Tom Worster
On 10/3/09 9:53 AM, "Ralph Deffke" wrote: > this is a clear sign that somebody is on a sin TRAIL, I would not even spend > the time on what sin collections this guy got i see it more as ignorance than sin. to misunderstand the difference between $n++ and ++$n is a beginner error. as k&r made

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
this is a clear sign that somebody is on a sin TRAIL, I would not even spend the time on what sin collections this guy got "Ashley Sheridan" wrote in message news:1254577986.2385.8.ca...@localhost... > On Sat, 2009-10-03 at 15:46 +0200, Ralph Deffke wrote: > > > yes for using > > $num = $num++;

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ashley Sheridan
On Sat, 2009-10-03 at 15:46 +0200, Ralph Deffke wrote: > yes for using > $num = $num++; > yes !! > > "Ashley Sheridan" wrote in message > news:1254577641.2385.7.ca...@localhost... > > On Sat, 2009-10-03 at 15:33 +0200, Ralph Deffke wrote: > > > u increment after! asigning, so far so good, bu

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
yes for using $num = $num++; yes !! "Ashley Sheridan" wrote in message news:1254577641.2385.7.ca...@localhost... > On Sat, 2009-10-03 at 15:33 +0200, Ralph Deffke wrote: > > u increment after! asigning, so far so good, but for math reasons the > > interpreter has to keep in mind the 123 you w

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Ashley Sheridan
On Sat, 2009-10-03 at 15:33 +0200, Ralph Deffke wrote: > u increment after! asigning, so far so good, but for math reasons the > interpreter has to keep in mind the 123 you want to assign before increment > to the same var. > > this is absolutely correct what php does here. > > $num = ++$num; wou

[PHP] Re: A really wacky design decision

2009-10-03 Thread Ralph Deffke
u increment after! asigning, so far so good, but for math reasons the interpreter has to keep in mind the 123 you want to assign before increment to the same var. this is absolutely correct what php does here. $num = ++$num; would print 124 the same like $num++; on the other hand this is just bu