Home ›
Array() definitions are separated by commas, NEVER semicolonsArray() definitions are separated by commas, NEVER semicolons
Submitted by Benjamin Melançon on August 19, 2007 - 7:33am
Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!
cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"
See, semicolon at the end, not after each element:
$pid = array(
'value' => $pid,
'field' => 'pid',
);
Ok, maybe now I'll remember.
Not like I've made this mistake so many times it got into a commit message of mine... when I fixed it in four places!
cvs commit -m "array declarations cannot have semicolons inside them. Commas, not semicolons!"
See, semicolon at the end, not after each element:
$pid = array(
'value' => $pid,
'field' => 'pid',
);
Ok, maybe now I'll remember.
Comments
Post new comment