Use the PHP Explode function. First it convert a expression into array then using foreach for display
<?php
$hello = 'rajan,rajvinder,raj,rohit,vikrant';
$hello = explode(',', $hello);
foreach($hello as $raj){
echo " ". $raj. " ";
}
?>
<?php
$hello = 'rajan,rajvinder,raj,rohit,vikrant';
$hello = explode(',', $hello);
foreach($hello as $raj){
echo " ". $raj. " ";
}
?>
No comments:
Post a Comment