How to used PHP explode Function in php and in array

Description

How to used PHP explode Function in php and in array 

What is use of explode () in php and how to split the array one by one in php

explode() also used in split the mysql array when we are fatch array

PHP explode() Function

<?php
$str = 'one,two,three,four';

// zero limit
print_r(explode(',',$str,0));

// positive limit
print_r(explode(',',$str,2));

// negative limit 
print_r(explode(',',$str,-1));
?>