Re: settype doc error

From: Date: Sun, 22 Apr 2001 08:19:46 +0000
Subject: Re: settype doc error
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335078@lists.php.net to get a copy of this message
> > The settype doc says: int settype (string var, string type) > > although it should be : int settype (mixed var, string type) > > > > The first argument is not a string. > > If it is, you should write: > > > > $abc = "foo"; settye("abc", "integer"); > > > > Indeed you must say: settype($abc, "integer"); > > > > An example there would be good. :) > > What types can be $abc? Any type. Array, string, integer ... The same stands for gettype, where the parameter is shown as mixed (which this should be). > If you have some working examples, change the docs. OK. > Don't forget to correct the protos in the source also. I don't have karma to play in the source, and I am not the best in C, so this should be a task for someone else. Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

« previous php.doc (#969335078) next »