I know how to replace an Apostrophe from a String with a space, in php. However how can I remove Apostrophes in arrays items?
//Example replacing Apostrophe with space
$string = str_replace("'", "", $escapestring);
if ( $f_pointer === false )
die ("invalid URL");
$ar=fgetcsv($f_pointer);
while(! feof($f_pointer))
{
$ar=fgetcsv($f_pointer);
//DO REPLACE HERE BEFORE INSERTION INTO SQL STATEMENT
$sql="INSERT INTO x
(1,2,3,4,5,6)
values('$array[0]','$array[1]','$array[2]',
'array[3]','array[4]','array[5]')";