> I'm a french student, sorry for my mail : > > I want to know how can I type my functions' arguments ? > > It is heavy to do : > function post($id) > { > $id=(int)$id; > //... PHP is loosely typed so strictly (...) speaking, that would be fine. However, you're best off making sure that what you've been given is what you think it is. Ergo, what you've written, is what I would do. > or tu put (int) before each use... Not necessary to put it there for each use, just the first. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 29th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php