VirusDoctor Posted November 22, 2007 Share Posted November 22, 2007 <?php $strip_html[1] = strip_tags (sql_safe(trim($_POST["name"]))); ?> Would this be valid? Firstly as you can see, strip_html[1] is a variable. sql_safe is a sql injection prevention function. What I would like to know is, can one create a variable like this, using strip_tags, trim and the function in one? Link to comment https://forums.phpfreaks.com/topic/78439-can-one-combine-functions-and-variables/ Share on other sites More sharing options...
trq Posted November 22, 2007 Share Posted November 22, 2007 What I would like to know is, can one create a variable like this, using strip_tags, trim and the function in one? Yes. Link to comment https://forums.phpfreaks.com/topic/78439-can-one-combine-functions-and-variables/#findComment-396941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.