How to type arguments
| From: | Gautier Di Folco | Date: | Tue, 02 Dec 2008 17:14:00 +0000 |
| Subject: | How to type arguments | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-283996@lists.php.net to get a copy of this message | ||
Hello,
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;
//...
or tu put (int) before each use...
Thank you for your help
_________________________________________________________________
Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail !
C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp