RE: [PHP-DEV] Is fgetss() useless?

From: Date: Tue, 29 Jul 2014 06:50:02 +0000
Subject: RE: [PHP-DEV] Is fgetss() useless?
Groups: php.internals 
Request: Send a blank email to internals+get-76246@lists.php.net to get a copy of this message
From: Maciej Sobaczewski [mailto:msobaczewski@gmail.com] > > so... fgetss(). We have such a beautiful function in PHP. As it's > described in the manual: "Get line from file pointer and strip HTML > tags". I'm wondering if it has any differences/advantages over using > just strip_tags(fgets($stream)). > > I'm going to write an RFC proposing deprecation and then removal of it, > but first I want to ensure that this function is as useless (IMHO) as I > think. > > Best regards, > Maciej. I like this proposal as I think that the number of different functions available for file reading is confusing for newcomers (at least it was for me, when I started with PHP ;-).

« previous php.internals (#76246) next »