A partir de tradutores profissionais, empresas, páginas da web e repositórios de traduções disponíveis gratuitamente
예 1. traversing all hashes
mhash_get_block_size
Última atualização: 2011-10-24
Frequência de uso: 1
Qualidade:
mhash_count() returns the highest available hash id. hashes are numbered from 0 to this hash id.
?php $nr = mhash_count(); for ($i = 0; $i = $nr; $i++) {echo sprintf ("the blocksize of %s is %d\n", mhash_get_hash_name ($i), mhash_get_block_size ($i));}?
Última atualização: 2011-10-24
Frequência de uso: 1
Qualidade:
Aviso: contém formatação HTML invisível
here is a list of hashes which are currently supported by mhash. if a hash is not listed here, but is listed by mhash as supported, you can safely assume that this documentation is outdated.
here is a list of hashes which are currently supported by mhash.
Última atualização: 2011-10-24
Frequência de uso: 1
Qualidade:
however, it's more than likely that these functions would prove to be useless for you when trying to implement a persistent module. typically, one would want to use the fact that the persistent resource list is really a hash table. for instance, in the mysql/msql modules, when there's a pconnect() call (persistent connect), the function builds a string out of the host/user/passwd that were passed to the function, and hashes the sql link with this string as a key. the next time someone calls a pconnect() with the same host/user/passwd, the same key would be generated, and the function would find the sql link in the persistent list.
one important thing to note: resources going into the persistent resource list must *not* be allocated with php' s memory manager, i.e., they should not be created with emalloc(), estrdup(), etc.
Última atualização: 2011-10-24
Frequência de uso: 1
Qualidade: