I have used the explode function in PHP to break up a string into an array giving “,” as the separator to break the string. My question is, what if the string does not contain the “,” separator “,” ? will there be an error or will the string be treated as an array with a single element?
Share
While it would be very easy to test, I’ll just show the output.