View test4now
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "hello world"; |
View gist:9998379
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void hi(int a, float b) { | |
printf("a = %d\n", a); | |
printf("b = %f\n", b); | |
} | |
int main(void) { | |
void (*hello)(float,int) = (void(*)(float,int))hi; | |
hi(1,2); |
View PHP gotcha 2013
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$o1 = new stdclass($a=8); | |
var_dump($a); // Notice: Undefined variable: a | |
$o2 = new Datetime($b='now'); | |
var_dump($b); // string "now" |