Thread
:
The Spoils of the Switch and Case Statements
View Single Post
#
4
08-16-2007, 08:27 PM
Inverness
Incubator
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Quote:
Originally Posted by
Chompy
PHP Code:
function
onCreated
() {
temp
.
a
= {
0
,
1
};
switch(@
temp
.
a
) {
case @{
0
,
1
}:
echo(
"foo"
);
break;
}
}
Its converting to string: "0,1"
__________________
Inverness
View Public Profile
View GraalOnline Profile
Find all posts by Inverness