[Solved] How can I split a semicolon delimited string into separate item from string?


You can use explode function. explode link

$str = "Loganathan <[email protected]>; Nathan <[email protected]>; Tester <[email protected]>;";
$str = str_replace(array(" <",">"),array(", ",""),$str);
$converted = explode(";",$str);
print_r($converted);

Which gives you output like

Array(
    [0] => Loganathan, [email protected]
    [1] => Nathan, [email protected]
    [2] => Tester, [email protected]
)

2

solved How can I split a semicolon delimited string into separate item from string?