FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » 500. Turbo Sort
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: 500. Turbo Sort [message #172621 is a reply to message #172608] Tue, 22 February 2011 09:25 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 22/02/2011 6:00, n00m escribió/wrote:
> Actually I sort (in usual sense) nothing.But my output is sorted, of
> course.
>
>> Shouldn't it be $i++ not ++$i on the for loop?
>
> And what's the difference (I refer only to my code above)?
> It's because my fingers like a bit more to press "++" first, then the
> rest.
> A kind of mechanical habit.

It's documented here:

http://es2.php.net/manual/en/language.operators.increment.php


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read/to download attachment on an URI?
Next Topic: Proxy to open blocked sites
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 06 18:31:19 GMT 2024

Total time taken to generate the page: 0.03289 seconds