Answer Posted / inno dev
explode= convert string into an array
such as
$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0];
echo $pieces[1];
echo $pieces[2];
echo $pieces[3];
echo $pieces[4];
echo $pieces[5];
Implode=Join array elements with a string
means convert array into a string
such as
<?php
$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);
echo $comma_separated;
?>
Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
What is the difference between session_unregister() and session_unset()?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
Write a program in php to reverse a number?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
What is http get and post?
How can we submit a form without using submit buttons?
What is form validation in php?
What are major variables in research?
What is the use of ajax in php?
How do I make a reset button in html?
Explain the changes in php versions?
How to remove white spaces from the beginning and/or the end of a string in php?
What are the four scalar types of php?
in PHP for pdf which library used?
How to execute an sql query? How to fetch its result?