I'm currently trying to figure out a huge mess of undocumented spaghetti code and Im just wondering what $variable=(int)$variable PHP: means. does (int) convert $variable to an integer? I'm seeing it a lot of $variable=(int)$variable in this mess of coding and I can't seem to figure out what it means ($variable being a generic name, naturally. The variable names range from resto to idffxchp *sighs*)
Just to add to T0PS3O's comments: sometimes this is used as a poorman's data scrubber for SQL commands. If that variable was passed in by the user somehow and it's going to be used in an SQL command as an integer, that command will make sure that they're not passing in any form of SQL injection...