Ask a Question related to PHP Programming, Design and Development.
-
Aect Listas #1
Hash
Hi,
How set up functions hash in php4.3.2
thanks
__________________________________________________ _______________
Charla con tus amigos en línea mediante MSN Messenger:
[url]http://messenger.yupimsn.com/[/url]
Aect Listas Guest
-
Hash in AS 2.0
So I was about to write a hash algorythm for flash and it appears brandon hall beat me by 2 years. Since there isn't anything here, in the flash... -
hash of hash of array slices
This works Foreach ( @{$hash{$key1}{$key2}} ) This does note Foreach ( @{($hash{$key1}{$key2})} ) This gives me this error .... Can't... -
Sort a hash based on values in the hash stored as arrays of hashes
Hmm. I'm not quite sure if I got the subject right, but I'll try to explain. :-) I've got a hash of elements stored like this: $VAR1 = {... -
Hash of Hash
Greetings, I am attempting to make a hash of hashes or something equivalent but can't seem to get it working properly. Here is what I have so... -
Another reference question (hash of hash references)
beginners, I am trying to build a hash of hash references. My problem is that I need to be able to add a key/value pair to the internal hashes...... -
Evan Nemerson #2
Re: [PHP] Hash
do you have something agains php.net/md5? php.net/crc32? php.net/sha1? They're
all included in 4.3
On Wednesday 30 July 2003 07:40 pm, AECT Listas wrote:> Hi,
>
> How set up functions hash in php4.3.2
>
> thanks
>
> __________________________________________________ _______________
> Charla con tus amigos en línea mediante MSN Messenger:
> [url]http://messenger.yupimsn.com/[/url]Evan Nemerson Guest
-
Thomas Kratz #3
Re: hash
"Garry Short" <g4rry_sh0rt@zw4llet.com> wrote...
or if you want to avoid an extra line for declaring the hash under 'use strict':> [email]sonet.all@msa.hinet.net[/email] wrote:
>
>> > how to do $ADHash{@userArray}=1;
> >
> >
> > Known
> > @usrArray = [a,b,c]
> >
> > Let:
> > $ADHach{'a'}=1
> > $ADHach{'b'}=1
> > $ADHach{'c'}=1
> >
> >
> > please mail to : [email]sonet.all@msa.hinet.net[/email]
> How about:
>
> foreach my $elem (@usrArray) { $ADHash{$elem} = 1 }
>
> or, even nicer (didn't know this was possible; suddenly had a flash of
> inspiration, tried it, and ... )
>
> $ADHash{$_} = 1 foreach @usrArray;
my %ADHash = map { $_ => 1 } @usrArray;
ThomasThomas Kratz Guest
-
Tassilo v. Parseval #4
Re: hash
[CCed to poster]
Also sprach <sonet.all@msa.hinet.net>:
By using a hash-slice:> how to do $ADHash{@userArray}=1;
>
>
> Known
> @usrArray = [a,b,c]
>
> Let:
> $ADHach{'a'}=1
> $ADHach{'b'}=1
> $ADHach{'c'}=1
@ADHash{ @userArray } = (1) x @userArray;
Slices are described in perldata.pod.
You may ask for a CC but asking for a mail reply is rude. A newsgroup> please mail to : [email]sonet.all@msa.hinet.net[/email]
also acts as archive for other people to look things up. If all replies
were by mail, a newsgroup would only contain the questions but no
answers.
Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus}) !JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexi ixesixeseg;y~\n~~dddd;eval
Tassilo v. Parseval Guest
-
Garry Short #5
Re: hash
[email]sonet.all@msa.hinet.net[/email] wrote:
How about:> how to do $ADHash{@userArray}=1;
>
>
> Known
> @usrArray = [a,b,c]
>
> Let:
> $ADHach{'a'}=1
> $ADHach{'b'}=1
> $ADHach{'c'}=1
>
>
> please mail to : [email]sonet.all@msa.hinet.net[/email]
foreach my $elem (@usrArray) { $ADHash{$elem} = 1 }
or, even nicer (didn't know this was possible; suddenly had a flash of
inspiration, tried it, and ... )
$ADHash{$_} = 1 foreach @usrArray;
I like that one :-)
Garry
Garry Short Guest
-
Re: hash
sorry !! my english is so poor! our first language is not english
in other words , i cant distinguish what different from mailto and cc .
sorry again!!
thanks for your reply
"Tassilo v. Parseval" <tassilo.parseval@rwth-aachen.de> ¦b¶l¥ó
news:bgvsmt$1ot$1@nets3.rz.RWTH-Aachen.DE ¤¤¼¶¼g...$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({> [CCed to poster]
>
> Also sprach <sonet.all@msa.hinet.net>:
>>> > how to do $ADHash{@userArray}=1;
> >
> >
> > Known
> > @usrArray = [a,b,c]
> >
> > Let:
> > $ADHach{'a'}=1
> > $ADHach{'b'}=1
> > $ADHach{'c'}=1
> By using a hash-slice:
>
> @ADHash{ @userArray } = (1) x @userArray;
>
> Slices are described in perldata.pod.
>>> > please mail to : [email]sonet.all@msa.hinet.net[/email]
> You may ask for a CC but asking for a mail reply is rude. A newsgroup
> also acts as archive for other people to look things up. If all replies
> were by mail, a newsgroup would only contain the questions but no
> answers.
>
> Tassilo
> --
>pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus}) !JAPH!qq(rehtona{tsuJbus#;>$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexi ixesixeseg;y~\n~~dddd;eval>
Guest
-
weberw@adelphia.net #7
Hash
How do I make the current letters appear in this version of hangman?
$current{word} = $cat
When the user enters c. I need it show c_ _.
sub processguess{
#hash of letters guessed
$current{letters} .= param('guess');
@guessed_letters = split('', $current{letters});
$current{letters} = join('', @guessed_letters);
return $current{'letters'};
my @word = split / /, $current{word};
$current{'revealed'} = join '',map {$current{letters}{$_} ? $_ : '_' }
$current{word} =~ /(.)/g;
return $current{'revealed'};
}
weberw@adelphia.net Guest
-
Dr.Ruud #8
Re: Hash
[email]weberw@adelphia.net[/email] schreef:
Certainly not by multi-posting.> How do I make the current letters appear in this version of hangman?
--
Affijn, Ruud
"Gewoon is een tijger."
Dr.Ruud Guest
-
Sherm Pendley #9
Re: Hash
"weberw@adelphia.net" <weberw@adelphia.net> writes:
You also posted this separately in c.l.p.misc. Please don't do that. This> How do I make the current letters appear in this version of hangman?
isn't a modules question anyway.
sherm--
--
Web Hosting by West Virginians, for West Virginians: [url]http://wv-www.net[/url]
Cocoa programming in Perl: [url]http://camelbones.sourceforge.net[/url]
Sherm Pendley Guest



Reply With Quote

