hia!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

hia!

Post by Benjamin »

pls tl me wat is best function to know?

array_flip() or array_flop()

Wah??!
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: hia!

Post 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?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: hia!

Post by flying_circus »

I prefer flippyfloppies()
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: hia!

Post 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!
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: hia!

Post 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()
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: hia!

Post 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:
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: hia!

Post by flying_circus »

Why do you hate fun?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: hia!

Post 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:
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: hia!

Post by pickle »

astions wrote:Hey no worries. That is pickle's way of having fun!
Yep.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: hia!

Post 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;
}
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: hia!

Post by Benjamin »

Perfect :drunk:
Post Reply