Tuesday, 20 October 2015

PHP Tutorial

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. " ";

}


?>

No comments:

Post a Comment