hia!
Posted: Mon Jan 25, 2010 3:38 pm
pls tl me wat is best function to know?
array_flip() or array_flop()
Wah??!
array_flip() or array_flop()
Wah??!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Hmm. I Rsrchd and discovered some tings. Flip = "throw or toss with a light motion" & Flop = "the act of throwing some ting down".AbraCadaver wrote:Seriously though, that depends totally on your implementation and whether you want to flip the array or flop the array
In the U.S. force is prefered, so I would go with array_flop()astions wrote:Hmm. I Rsrchd and discovered some tings. Flip = "throw or toss with a light motion" & Flop = "the act of throwing some ting down".AbraCadaver wrote:Seriously though, that depends totally on your implementation and whether you want to flip the array or flop the array
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!
[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.
Hey no worries. That is pickle's way of having fun!flying_circus wrote:Why do you hate fun?
Yep.astions wrote:Hey no worries. That is pickle's way of having fun!
astions wrote:Hey no worries. That is pickle's way of having fun!flying_circus wrote:Why do you hate fun?
But, I do think that PHP does need a function called array_flop();... that will do something.. maybe it can flip them.. harder.
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;
}