How to create an array from a PHP string? explain with example

You can use the array() function with comma strings passed as an argument to it, to create an array of strings. Syntax:- You can use create an…