inboxHub
Login
Signup
x
Login
Signup
Home
Categories
Application
Artificial Intelligence
Database
Digital Marketing
Physiotherapy
Quality Assurance
Web Technology
Home
Convert-a-string-to-an-array
Convert a string to an array
How to Convert a string to an array in php?
Ankur Rajput
Asked 17-11-2024
250
Answer (1)
$str = "Hello world. It"s a beautiful day.";
print_r (explode(" ",$str));
?>
Result:
Array ( [0] => Hello [1] => world. [2] => It"s [3] => a [4] => beautiful [5] => day. )
Deepak Sharma
Asked 22-07-2018
45 Likes
Comments
Write comment
Submit
Submit your answer