Are you using Filter extension?
Posted: Thu Dec 11, 2008 3:20 am
Probably most of you are aware of PHP's Filter extension
http://nl.php.net/manual/en/book.filter.php
which can be used to validate and filter data.
In the past I've heard mixed reactions about its functionality and usefulness. People might not want to use or rely on it because it's an extension and might not be installed on every server (it's also a php5 only extension if I remember correctly). Secondly, as can be seen from the manual, the documentation is still quite sparse. That's a drawback as you need detailed information about each filter function, if you want to know what your code is doing.
Time has past, and now that PHP4 is ending its life, have people changed their minds about the Filter extension, are people using it more often?
To me, the extension seems useful. If it's possible to use a native PHP function instead of reinventing the wheel with my own regexp experiment, I will go for the native function. However, the Filters sparse documentation and sometimes complicated syntax make me have some doubts.
http://nl.php.net/manual/en/book.filter.php
which can be used to validate and filter data.
In the past I've heard mixed reactions about its functionality and usefulness. People might not want to use or rely on it because it's an extension and might not be installed on every server (it's also a php5 only extension if I remember correctly). Secondly, as can be seen from the manual, the documentation is still quite sparse. That's a drawback as you need detailed information about each filter function, if you want to know what your code is doing.
Time has past, and now that PHP4 is ending its life, have people changed their minds about the Filter extension, are people using it more often?
To me, the extension seems useful. If it's possible to use a native PHP function instead of reinventing the wheel with my own regexp experiment, I will go for the native function. However, the Filters sparse documentation and sometimes complicated syntax make me have some doubts.