How to convert string to array in php?

How to convert string to array in php?

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)

Take a look at the explode function.

 

<?php 
$string="Thank you for choosing aviance";
$array = explode(' ', $string);
?>

 

Team Leader Answered on March 19, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.