Thread
:
A simple PHP Question
View Single Post
10-02-2006, 05:07 AM
#
4
(
permalink
)
Litewebsite
Member
Join Date: 08-02-06
Location: Sweden
Posts: 30
iTrader:
0
/ 0%
Latest Blog:
None
You could also do
type casting
for your variables.
PHP Code:
$x
=
1
;
$y
=
'1'
;
$y
= (int)
$y
;
// type casting
Now both variables are integers and will match ===.
Litewebsite
View Public Profile
Visit Litewebsite's homepage!
Find More Posts by Litewebsite