I'm using str_ireplace() to remove instances of strings in an array, and I'm returning the number of counted occurances, but it's not actually performing the replace.
//replace occurances of insert, update, delete, select
$dmlArray = array('select', 'update', 'delete', 'insert');
str_ireplace($dmlArray,'-- replaced DML -- ',$clean['comment'],$Incount);
Where $clean['comment'] would be the $_POST array.
For example, $clean['comment'] = "SELECT, insert, UPDATE, DEleTe";
The final string should be "-- replaced DML -- ,-- replaced DML -- ,-- replaced DML -- ,-- replaced DML -- ";
Yet it's not.