Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_explode

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-11-16T05:15:29Z

Updated

2019-11-16T05:15:29Z

<?php

/* A string that doesn't contain the delimiter will simply return a one-length array of the original string. */
$input1 = "hello";

$input2 = "hello,there";

var_dump( explode( ',', $input1 ) );

var_dump( explode( ',', $input2 ) );

?>
INFO