<?php $line = "A|c|d"; list ($name, $occupation, $color) = explode ("|", $line); print "Name: $name <br />"; print "Occupation: $occupation <br />"; print "Favorite color: $color <br />"; ?>