> > 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

Reply via email to