top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the use of explode function in PHP?

0 votes
552 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
...