explode() | Split data in PHP

Date Published: 09/09/2020Published By: JaiSchool

<?php
$data = explode("_wp_","raman_wp_shayam");
echo $data[0];
?>

If you want to split every letter then leave first parameter empty.

<?php
$data = explode("","raman_wp_shayam");
print_r($data);
?>