filter_has_var vs isset


i using following sanitize input prior validating:

 

if(filter_has_var(input_post, "$var")) {

$sanitized = filter_input(input_post, '$var', filter_sanitize_string);

$_post['$var'] = trim($sanitized);

 

is preferable use filter_has_var() check input or isset()? there difference , it?

 

thank in advance help.

according anonymous note in php documentation, filter_has_var() faster isset(). i've no idea if that's accurate, hasn't been removed php documentation team, seems legitimate.

 

other that, there's no difference.



More discussions in Develop server-side applications in Dreamweaver


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support