🌐
OnlinePHP
onlinephp.io › explode
explode - Online Tool
Execute and test explode with this online tool
🌐
W3Schools
w3schools.com › php › func_string_explode.asp
PHP explode() Function
<?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?> Try it Yourself »
🌐
Functions-Online
functions-online.com › explode.html
test explode online - PHP string functions - functions-online
Test and run explode online in your browser. Returns an array of strings, each of which is a substring of $string formed by splitting it on bound
🌐
PHP
php.net › manual › en › function.explode.php
PHP: explode - Manual
If separator is an empty string (""), explode() throws a ValueError. If separator contains a value that is not contained in string and a negative limit is used, then an empty array will be returned, otherwise an array containing string will be returned. If separator values appear at the start or end of string, said values will be added as an empty array value either in the first or last position of the returned array respectively. ... <?php // Example 1 $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0], PHP_EOL; // piece1 echo $pieces[1], PHP_EOL; // piece2 // Example 2 $data = "foo:*:1023:1000::/home/foo:/bin/sh"; list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data); echo $user, PHP_EOL; // foo echo $pass, PHP_EOL; // * ?>
🌐
Online-domain-tools
php-functions.online-domain-tools.com › explode
explode() - PHP Functions Online
Example #1 explode() examples · <?php // Example 1 $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 // Example 2 $data = "foo:*:1023:1000::/home/foo:/bin/sh"; list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data); echo $user; // foo echo $pass; // * ?> Note: This function is binary-safe.
🌐
Fnlist
php.fnlist.com › string › explode
PHP Online Function Tester - explode
[More at php.net] Test explode online | PHP 5.6.40 | Donate | Contact me or report bugs | by Caine
🌐
OnlinePHP
onlinephp.io › explode › examples
explode - Examples
PHP Functions · Donate/Get Premium · Login / Register · OnlinePHP.io · Documentation · explode · Examples · PHP 4, PHP 5, PHP 7, PHP 8 · explode - Split a string by a string · Explode Online Tool · Manual · Code Examples ·
🌐
Online Free Tools
online-free-tools.com › en › explode_split_string_delimiter
Explode string by a delimiter using PHP function explode
Try the PHP function explode online. This tool splits / explodes any string based on the delimiter given.
🌐
OnlinePHP
onlinephp.io › explode › manual
explode - OnlinePHP.io Example
Execute explode Online. Info and examples on explode PHP Function from Strings - Text Processing
🌐
Tutorialspoint
tutorialspoint.com › php › php_function_explode.htm
PHP String explode() Function
If the delimiter is not recognized in the string, explode() returns an array with the complete string as the only item. Otherwise, it will divide the string. <?php // Strings with and without the delimiter $input1 = "welcome"; $input2 = "welcome,home"; // Use explode with a comma as the delimiter print_r(explode(',', $input1)); print_r(explode(',', $input2)); ?>
Find elsewhere
🌐
OnlinePHP
onlinephp.io › implode
implode - Online Tool
Execute and test implode with this online tool
🌐
Zero To Mastery
zerotomastery.io › blog › php-explode-beginners-guide
Beginner's Guide to PHP explode() Function (With Code Examples!) | Zero To Mastery
However, the delimiter you choose for the explode() function can be any character or sequence of characters. It’s completely up to you what you decide to use, and depends on what you're trying to achieve with your script. ... <?php $inputString = "The quick brown fox jumps over the lazy dog"; print_r(explode(" ", $inputString)); ?>
🌐
PHPpot
phppot.com › php › php-explode
PHP Explode - PHPpot
The explode will return an array of countries from the input string. Then this code iterates the output array and loads the options to a HTML dropdown. Once we have seen how to load country-state dropdown from the database. ... <?php $countries = "Germany,United Kingdom,France,Spain,United States"; $result = explode(",", $countries); ?> <html> <head> <title>PHP-Explode and add to dropdown</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="./../asse
🌐
Sectorweb
sectorweb.ro › php-toolbox › explode
PHP EXPLODE - PHP Functions Online - Sector web
This is an online tester for PHP functions, a useful toolbox for any php programmer or web developer which need fast small results retrieved from php function calls.
🌐
GeeksforGeeks
geeksforgeeks.org › php › php-explode-function
PHP explode() Function - GeeksforGeeks
June 24, 2025 - The explode() function in PHP is used to split a string into an array based on a specified delimiter. This function is commonly used when you need to break down a string into individual parts.
🌐
ReqBin
reqbin.com › code › php › bnk8kgym › php-split-string-example
How do I split a string in PHP?
In this PHP Split String example, we split a string into an array using the explode() function. Below you can see more examples of splitting strings in PHP with a detailed description of each method. Click Execute to run the PHP Split String to Array Example online and see the result.
🌐
Simplilearn
simplilearn.com › home › resources › software development › explode in php function: everything you need to know
Explode in PHP Function: Everything You Need to Know
November 18, 2025 - Explode in PHP is one of the built-in functions. Learn all about explode function ✓ its uses ✓ parameters ✓ syntax, and much more in this tutorial. Start now!
Address   5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States