Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

list and explode

Tue Oct 28, 2008 12:14 am

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

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

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

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




Post a reply
  Related Posts  to : list and explode
 explode CSV file     -  
 explode time     -  
 Implementation of List     -  
 List interface     -  
 List C++ implementation     -  
 List all database in php     -  
 Sort a list     -  
 iterator on list     -  
 display list     -  
 reverse list     -  

Topic Tags

PHP Arrays