str_getcsv

PHP 5 >= 5.3.0, PHP 7, PHP 8
str_getcsv - Parse a CSV string into an array

Example #1 str_getcsv example

Result: array(5) { [0]=> string(3) "PHP" [1]=> string(4) "Java" [2]=> string(6) "Python" [3]=> string(6) "Kotlin" [4]=> string(5) "Swift" }
PHP Version:


Example #2 of str_getcsv

PHP Version:


Function str_getcsv:

Strings Functions

Most used PHP functions