list and explode : list « Development « PHP






list and explode

<?php
$line = "A|c|d";

list ($name, $occupation, $color) = explode ("|", $line);

print "Name: $name <br />";
print "Occupation: $occupation <br />";

print "Favorite color: $color <br />";
?>

           
       








Related examples in the same category

1.list: Print all server variables