Re: settype doc error

From: Date: Sun, 22 Apr 2001 08:12:55 +0000
Subject: Re: settype doc error
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335077@lists.php.net to get a copy of this message
On Sun, Apr 22, 2001 at 10:03:03AM +0200, Hojtsy Gabor wrote: > 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? If you have some working examples, change the docs. Don't forget to correct the protos in the source also. -Egon -- LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/ All known books about PHP and related books: http://php.net/books.php Concert Band of the University of Hohenheim: http://www.concert-band.de/ First and second bestselling book in German: http://www.php-buch.de/

« previous php.doc (#969335077) next »