rsort(array_combine(array2, array1));
you should expect array(
'Personal Email' => 75,
'USPS mail' => 40,
'Personal Phone' => 31,
'Web site' => 31,
'Text Message' => 31
)
logically, the items are your key but not the count of votes
On Wed, Apr 7, 2010 at 6:29 PM, tedd wrote:
> At 5:3
At 5:35 PM -0400 4/7/10, Andrew Ballard wrote:
On Wed, Apr 7, 2010 at 5:02 PM, Paul M Foster wrote:
Array indexes have to be unique regardless of whether they are numeric
or strings.
Ahhh, so you start to see the problem, eh?
Let's look at the problem again (a vote collection problem):
Array
Try this insted
array(
[0]=>array( [0]=>75, [1] => Personal Email)
[1]=>array( [0]=>31, [1] => Personal Phone)
[2]=>array( [0]=>31, [1] => Web site)
[3]=>array( [0]=>31, [1] => Text Message)
[4]=>array( [0]=>40, [1] => USPS mail)
MvH / Hans Åhlin
Tel: +46761488019
http://www.kronan-net.com/
irc:/
On Wed, Apr 7, 2010 at 5:02 PM, Paul M Foster wrote:
> On Wed, Apr 07, 2010 at 04:09:47PM -0400, tedd wrote:
>
>> Hi gang:
>>
>> Here's the problem -- I want to sort and combine two arrays into one
>> sorted array. Here's a real-world example:
>>
>> Array 1
>> (
>> [1] => 75
>> [2] => 31
>
On Wed, Apr 07, 2010 at 04:09:47PM -0400, tedd wrote:
> Hi gang:
>
> Here's the problem -- I want to sort and combine two arrays into one
> sorted array. Here's a real-world example:
>
> Array 1
> (
> [1] => 75
> [2] => 31
> [3] => 31
> [4] => 31
> [5] => 40
> )
>
> Array 2
> (
Piero Steinger wrote:
Am 07.04.2010 22:09, schrieb tedd:
Hi gang:
Here's the problem -- I want to sort and combine two arrays into one
sorted array. Here's a real-world example:
Array 1
(
[1] => 75
[2] => 31
[3] => 31
[4] => 31
[5] => 40
)
Array 2
(
[1] => Personal
Am 07.04.2010 22:09, schrieb tedd:
> Hi gang:
>
> Here's the problem -- I want to sort and combine two arrays into one
> sorted array. Here's a real-world example:
>
> Array 1
> (
> [1] => 75
> [2] => 31
> [3] => 31
> [4] => 31
> [5] => 40
> )
>
> Array 2
> (
> [1] => Person
Hi gang:
Here's the problem -- I want to sort and combine two arrays into one
sorted array. Here's a real-world example:
Array 1
(
[1] => 75
[2] => 31
[3] => 31
[4] => 31
[5] => 40
)
Array 2
(
[1] => Personal Email
[2] => Personal Phone
[3] => Web site
[4]
time
today I have seen something like this and both have originated through
actual gmail accounts and CC to people on their mailing lists.
__ Information from ESET Smart Security, version of virus signature
database 5007 (20100407) __
The message was checked by ESET Smart Security
Nilesh Govindarajan wrote:
On 04/07/10 21:41, Chris G wrote:
http://sites.google.com/site/vfgbyuhoi6/kewe2w
Is there no spam filter at lists.php.net ?
Does your filter catch 101% of all of it? That's
the only one I've seen in a Long Time(tm).
Just asking :-)
Kevin Kinsey
--
PHP G
2010/4/7 Nilesh Govindarajan :
> On 04/07/10 21:41, Chris G wrote:
>>
>> http://sites.google.com/site/vfgbyuhoi6/kewe2w
>>
>
> Bloody asshole spammer.
> Is there no spam filter at lists.php.net ?
It was probably a virus or a trojahn, not intentionally sent to the
list by the OP...
>
> --
> Nilesh
On 04/07/10 21:41, Chris G wrote:
http://sites.google.com/site/vfgbyuhoi6/kewe2w
Bloody asshole spammer.
Is there no spam filter at lists.php.net ?
--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !
--
PHP General Mailing List (http://ww
On Wed, Apr 7, 2010 at 12:11, Chris G wrote:
> http://sites.google.com/site/vfgbyuhoi6/kewe2w
Heads-up: It's a SPAM link. You probably already knew that.
(Funny that Jochem was targeted directly for this particular one. ;-P)
--
daniel.br...@parasane.net || danbr...@php.net
http://ww
http://sites.google.com/site/vfgbyuhoi6/kewe2w
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
phpseclib does SSH without PECL extension and only with fsockopen:
http://phpseclib.sourceforge.net/
On Sun Apr 4 21:09:54 2010, Hans_Åhlin wrote:
> Instead of ssh, you could use telnet to connect to the Cisco router
> (which incidentally runs on port 23, but is likely to be disabled on
> the ci
Nathan,
The profiling I included proved that was not the case.
Mysql run the query and return the single column single row result in under
1 second but PHP's mysql->query waited much longer than that to return. If
it was a big result set I could see some slow down in parsing the results
into
On Wed, Apr 7, 2010 at 10:27 AM, Igor Feghali wrote:
> I am running with an issue with remote filesystems (mounted via NFS)
> and PHP's stat() / filemtime().
>
> Sometimes when the remote filesystem (NFS share) is busy, my PHP
> daemon just hangs forever on a filemtime() call to a file inside this
I am running with an issue with remote filesystems (mounted via NFS)
and PHP's stat() / filemtime().
Sometimes when the remote filesystem (NFS share) is busy, my PHP
daemon just hangs forever on a filemtime() call to a file inside this
FS. I failed to find a proper way of setting a timeout for tha
On Wed, Apr 07, 2010 at 03:37:07PM +0300, Andre Polykanine wrote:
> Hello everyone,
> I decided to use Mantis before I'll be able to use something like Trac
> :-).
> The problem is: I'm not getting mail about issues reported by my
> testers, only by myself. The preferences are set correctly (all t
Hello everyone,
I decided to use Mantis before I'll be able to use something like Trac
:-).
The problem is: I'm not getting mail about issues reported by my
testers, only by myself. The preferences are set correctly (all the
checkboxes are checked).
Could you help me please?
Thanks!
--
With best
On Tue, 2010-04-06 at 21:44 -0500, Karl DeSaulniers wrote:
> When I have an imagecreatetruecolor and I create another one and use
> imagecopymerge, how do I keep the backgrounds transparent even if say
> the width of the top image is smaller than the back image?
> I keep getting a black backgr
On a related note: does anyone know why
php -r "echo date('Y-m-d H:i:s', strtotime('a'));"
happily outputs a valid timestamp? And why all other letters work as
well (but only one character)? I'm sure there's a good reason for it,
it just completely escapes me right now :)
Regards
Peter
--
WWW
22 matches
Mail list logo