Convert string arraylist to string array

ArrayList categoryList; // data is [Apple, Orange]

How do you convert to string array with the same data in the arraylist

What do you mean string array?

Do you mean: json_decode([Apple, Orange]);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.