![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveconfused: casting a variable to integer
From: Erwin Moller <since_humans_read_this_I_am_spammed_too_much@spamyourself.com>
Date: Tue Nov 29 2005 - 17:55:25 CET
Hi group,
Maybe I should stop working because this seems soo basic.
Consider the following script:
<?
echo "\$name=$name <br>";
if ($name == (int)$name){
produces:
What am I missing here?
Is PHP casting the string "henk" to 0 somehow?
Regards,
|