PHP Explode All Character into Array Example

Hello Dev,

Right this moment, i we are going to present you PHP explode all character into array instance. This text will provide you with easy instance of PHP explode all character into array instance. you’ll be taught PHP explode all character into array instance. So let’s comply with few step to create instance of PHP explode all character into array instance.

Instance:


<?php
    $identify = "Mohan";

    $arr = str_split($identify);
  
    print_r($arr);
  
?>

Output:


Array
(
    [0] => M
    [1] => o
    [2] => h
    [3] => a
    [3] => n
)

Komentar

Postingan populer dari blog ini

PHP 8 Multiple Select Dropdown Example

Laravel 8 Get HTTP Hostname

JQuery Drag And Drop Menu Example