top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the use of explode function in PHP?

0 votes
83 views
What is the use of explode function in PHP?
posted Jun 23, 2014 by Amanpreet Kaur

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The explode() function breaks the string into array.


<?php $str = "Hello Everyone "; print_r (explode(" ",$str)); ?>


The output will be in the form of ARRAY.

answer Jun 24, 2014 by Rahul Mahajan
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...