I hereby claim:
- I am SammyK on github.
- I am sammyk (https://keybase.io/sammyk) on keybase.
- I have a public key whose fingerprint is AD0B 4822 0571 049A D52C 995E 0D8B 1EF3 853E 00F4
To claim this, I am signing this object:
// Copy/pasted from string.c | |
static char hexconvtab[] = "0123456789abcdef"; | |
// Copy/pasted from string.c | |
static zend_string *php_bin2hex(const unsigned char *old, const size_t oldlen) | |
{ | |
zend_string *result; | |
size_t i, j; | |
result = zend_string_safe_alloc(oldlen, 2 * sizeof(char), 0, 0); |
I hereby claim:
To claim this, I am signing this object:
I don't know enough about how programming languages work to even know what this is called. But when working on an event emitter, I thought it'd be cool if PHP would be able to support this:
class FooClass {
function bam() { echo 'BAM!'; }
}
function foo(array $bar = []) {
print_r($bar);
}
If you want to be a respectable PHP programmer in this age, make sure you know about a few important things!
Familiarize yourself with PSR standards. The most important one is PSR-0 as it changed the way PHP is coded in version 5.3.