I am importing a CSV file which contains list of URLS. These URLs are displaying in tabular format to perform some operations. But a space is added to the beginning of url. Because of this the operations I am performing on it fails. So how I can remove that space.When I done print_r() in my controller it shows result as �https://www.surveygizmo.com
if (($handle = fopen($filename, "r")) !== FALSE)
{
while (($value = fgetcsv($handle, 1000, ",")) !== FALSE)
{
$num = count($value);
for ($c=0; $c < $num; $c++)
{
echo "<pre>";
print_r($value[$c]);
Above a few lines of code. I am getting symbol,� before the content.
How can I remove that? I tried with trim. But still its not working. I need help. Thank you