IWETHEY v. 0.3.0
|
TODO
1,095 registered users | 0
active users
| 0 LpH |
Statistics
Login
|
Create New User
Welcome to IWETHEY!
IWETHEY Home
/
IWETHEY Board
/
Theory and Practice of Programming Forum
/
Ahh, but look at my corrected* version
Post #316,565
by
drook
11/1/09 8:35:15 AM
Reply
Ahh, but look at my corrected* version
You're checking if the array key exists in the second dimension of the array. I'm checking for the value in the first dimension. Both versions are looking at the same hash.
* I had the parameters reversed until I just now updated it.
--
Drew
Post #316,567
by
crazy
11/1/09 9:06:41 AM
Reply
Why is this an argument?
in_array == bad for large sets.
Dead end on this path.
Post #316,578
by
drook
11/1/09 10:33:30 AM
Reply
Because I didn't read all the comments on that thread
Which I now have. So I now understand that the keys are indexed, but the values are not.
--
Drew
Post #316,581
by
crazy
11/1/09 10:37:36 AM
Reply
Good
I love educational threads.
Post #316,583
by
folkert
11/1/09 10:56:21 AM
Reply
Thank you...
Sister Barry Catherine.
Please no rulers today!
Post #316,589
by
crazy
11/1/09 11:43:49 AM
Reply
I prefer the gentle approach
Like my daughter says to me all the time:
GET OUT OF MY HEAD!
I never tell her what to do or think. But little anecdotes and hints are enough to send the wheels spinning. She hates that.
PHP vs Perl questions
- (
crazy
)
- (17)
- Oct. 30, 2009, 11:58:10 AM EDT
Ooops,
- (
crazy
)
- Oct. 30, 2009, 12:14:34 PM EDT
Try this
- (
drook
)
- (15)
- Oct. 30, 2009, 07:26:19 PM EDT
Here's a better version.
- (
static
)
- (14)
- Oct. 30, 2009, 06:54:39 PM EDT
Why better?
- (
drook
)
- (13)
- Oct. 30, 2009, 07:28:35 PM EDT
Well, it depends on what defined() means in PERL.
- (
static
)
- (12)
- Oct. 31, 2009, 08:42:50 AM EDT
So two issues
- (
drook
)
- (11)
- Oct. 31, 2009, 11:12:47 AM EDT
That's the problem
- (
crazy
)
- (10)
- Oct. 31, 2009, 12:09:17 PM EDT
*All* arrays in PHP are hashes
- (
drook
)
- (9)
- Oct. 31, 2009, 12:58:08 PM EDT
Big difference
- (
crazy
)
- Oct. 31, 2009, 04:32:23 PM EDT
Multiple orders of magnitude difference
- (
crazy
)
- (7)
- Oct. 31, 2009, 04:50:57 PM EDT
It's an index vs. value thing.
- (
static
)
- (6)
- Nov. 1, 2009, 07:49:15 AM EST
Ahh, but look at my corrected* version
- (
drook
)
- (5)
- Nov. 1, 2009, 08:35:15 AM EST
Why is this an argument?
- (
crazy
)
- (4)
- Nov. 1, 2009, 09:06:41 AM EST
Because I didn't read all the comments on that thread
- (
drook
)
- (3)
- Nov. 1, 2009, 10:33:30 AM EST
Good
- (
crazy
)
- (2)
- Nov. 1, 2009, 10:37:36 AM EST
Thank you...
- (
folkert
)
- (1)
- Nov. 1, 2009, 10:56:21 AM EST
I prefer the gentle approach
- (
crazy
)
- Nov. 1, 2009, 11:43:49 AM EST
i
we
they
.org
It applies to so much...
59 ms