Re: Is this "typecast" safe?

From: Date: Wed, 14 Feb 2001 17:39:46 +0000
Subject: Re: Is this "typecast" safe?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39687@lists.php.net to get a copy of this message
Try it, it should be no problem. -- Chris Lee Mediawaveonline.com em. lee@mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""John Vanderbeck"" <agathorn@cfl.rr.com> wrote in message news:011a01c096a7$f8e78080$d8721a18@cfl.rr.com... > I'm a little unsure of how variables are cast around in PHP, since it seems > like VisualBasic where I don't declare any types, the compiler just figures > it out. > > Would something like this be safe?.... > $info = fread($file, filesize("blah"); > $info = explode("\n", $info); > > echo $info[0]; > .... > > > - John Vanderbeck > - Admin, GameDesign > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#39687) next »