I wanna import data from CSV file and print it on a webpage using PHP. first I tried it with print_r() it worked perfectly. But, when I tried to print each value in the array individually the error "Array to string conversion" how to prevent this error and access each array value individually? Here is the code
<?php $csv =array_map('str_getcsv', file('kishore.csv'));print_r($csv);echo "
$csv[0]";?>