Search found 7 matches

by indianyogi
Mon Feb 02, 2009 8:30 am
Forum: PHP - Code
Topic: associative array help wanted
Replies: 4
Views: 83

Re: associative array help wanted

@susrisha

I think i didnt framed my issues correctly. Nevertheless, u understood. Your code works like a charm!

Thank yo.u
by indianyogi
Mon Feb 02, 2009 4:14 am
Forum: PHP - Code
Topic: associative array help wanted
Replies: 4
Views: 83

associative array help wanted

I have an associative array .. something like $arrEU=array("Brussels"=>"Peter Hubert ","Paris"=> "France","Berlin"=> "Beyer",.... I want to club all values with key "Brussels" together. For this i am doing something like this: for...
by indianyogi
Tue Jan 27, 2009 1:16 pm
Forum: PHP - Code
Topic: Whats wrong with this code
Replies: 2
Views: 216

Whats wrong with this code

pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too. I have following code /* check connection */                  if (m...
by indianyogi
Sat Jan 24, 2009 1:30 pm
Forum: PHP - Code
Topic: reading forwarded mails from gmail using imap_fetch_overview
Replies: 1
Views: 171

Re: reading forwarded mails from gmail using imap_fetch_overview

i got it !!

using msg headers.

Thanks a lot !!!!!
by indianyogi
Sat Jan 24, 2009 11:13 am
Forum: PHP - Code
Topic: reading forwarded mails from gmail using imap_fetch_overview
Replies: 1
Views: 171

reading forwarded mails from gmail using imap_fetch_overview

I am forwarding my emails from my gmail account to a mailbox using gmail's forwarding facility [Using Setting->Forward option] Now, from that mailbox i am fetching overview using imap_fetch_overview . I am not at all interested in what the body of email(s) contains. Now, the real issue is that if so...
by indianyogi
Wed Jan 21, 2009 10:12 am
Forum: PHP - Code
Topic: looking for a Function processing a 2-dim array.
Replies: 3
Views: 144

Re: looking for a Function processing a 2-dim array.

<?php function ArrayGroupByCount($_array, $sort = false) { $count_array = array(); foreach (array_unique($_array) as $value) { $count = 0; foreach ($_array as $element) { if ($element == $value) $count++; } $count_array[$value] = $count; } if ( $sort == 'desc' ) arsort($count_array); elseif ( $sort ...
by indianyogi
Tue Jan 20, 2009 9:38 am
Forum: PHP - Code
Topic: looking for a Function processing a 2-dim array.
Replies: 3
Views: 144

looking for a Function processing a 2-dim array.

I have a 2-dimensional array .. with following sample data: #1 abc@gmail.com #2 avneek@hotmail.com #3 suresh@uk2.net #4 suresh@uk2.net #5 abc@gmail.com where first column depicts serial number and second depicts email addresses. Is there any function available in PHP which can help me process this a...