Page 1 of 1

hia!

Posted: Mon Jan 25, 2010 3:38 pm
by Benjamin
pls tl me wat is best function to know?

array_flip() or array_flop()

Wah??!

Re: hia!

Posted: Mon Jan 25, 2010 3:51 pm
by AbraCadaver
I Can Has Cheezburger?

Seriously though, that depends totally on your implementation and whether you want to flip the array or flop the array ;-)

You must be bored?

Re: hia!

Posted: Mon Jan 25, 2010 4:06 pm
by flying_circus
I prefer flippyfloppies()

Re: hia!

Posted: Mon Jan 25, 2010 4:16 pm
by Benjamin
AbraCadaver wrote:Seriously though, that depends totally on your implementation and whether you want to flip the array or flop the array ;-)
Hmm. I Rsrchd and discovered some tings. Flip = "throw or toss with a light motion" & Flop = "the act of throwing some ting down".

So I hve been unsuccessful at scovering wether I should throw the array down with force or lightly.

Maybe flopping it will be faster!?!? Pls help!

Re: hia!

Posted: Mon Jan 25, 2010 4:47 pm
by AbraCadaver
astions wrote:
AbraCadaver wrote:Seriously though, that depends totally on your implementation and whether you want to flip the array or flop the array ;-)
Hmm. I Rsrchd and discovered some tings. Flip = "throw or toss with a light motion" & Flop = "the act of throwing some ting down".

So I hve been unsuccessful at scovering wether I should throw the array down with force or lightly.

Maybe flopping it will be faster!?!? Pls help!
In the U.S. force is prefered, so I would go with array_flop()

Re: hia!

Posted: Mon Jan 25, 2010 5:24 pm
by pickle
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
:wink:

Re: hia!

Posted: Mon Jan 25, 2010 7:04 pm
by flying_circus
Why do you hate fun?

Re: hia!

Posted: Mon Jan 25, 2010 11:27 pm
by Benjamin
flying_circus wrote:Why do you hate fun?
Hey no worries. That is pickle's way of having fun!

But, I do think that PHP does need a function called array_flop();... that will do something.. maybe it can flip them.. harder.

:drunk:

Re: hia!

Posted: Mon Feb 01, 2010 9:35 am
by pickle
astions wrote:Hey no worries. That is pickle's way of having fun!
Yep.

Re: hia!

Posted: Mon Feb 01, 2010 9:54 am
by AbraCadaver
astions wrote:
flying_circus wrote:Why do you hate fun?
Hey no worries. That is pickle's way of having fun!

But, I do think that PHP does need a function called array_flop();... that will do something.. maybe it can flip them.. harder.

:drunk:

Code: Select all

function array_flop($trans) {
    $i = 0;
    foreach($trans as $key => $value) {
        $result[$value] = $key;
        if($i % 2 == 0) {
            echo 'BAM!!!!!!!!!!';
        } else {
            echo 'SMACK!!!!!!!!';
        }
        $i++;
    }
    return $result;
}

Re: hia!

Posted: Mon Feb 01, 2010 11:52 am
by Benjamin
Perfect :drunk: