Is there a principle that advises against doing things like:
mysql_real_escape_string(trim(str_replace($var, "black", "<body text='%body%'>")));
If something like that should be a no-no, then would this be acceptable?
$var = trim($var);
$var = str_replace($var, "black", "<body text='%body%'>");
$var = mysql_real_escape_string($var);
Or is that bad practice also, to call and perform on the same variable on a single like, like I did above? Would it be better to do:
$var1 = trim($var);
$var2 = str_replace($var1, "black", "<body text='%body%'>");
$var3 = mysql_real_escape_string($var2);
I've always wondered this!