Last active
February 8, 2019 13:13
-
-
Save Burakhan/8f5ba4c8a90da862eb5106ce6672aeb0 to your computer and use it in GitHub Desktop.
symfony csv semicon reader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$serializer = $this->getContainter('serializer'); | |
$data = $serializer->decode(file_get_contents('./data/tum_kazanimlar.csv'), 'csv', ['csv_delimiter' => ';']); | |
for($i = 0; $i < 2 ; $i++) { | |
dump($data[$i]); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment