On Tue, 11 Jan 2005 17:36:43 -0800, brianshields wrote:
Oh and is it possible to change the delimeters of an array to pipes?
Delimiters appear in strings. Delimiters in arrays is meaningless.
You are getting array usage confused a little. You don't "split" an
array! An array is formed when you "split()" a string, however.
examples:
<?php
$str = "a,b,c,d,e,f";
$ary = split(",", $str);
echo $ary[2]; // Outputs "c"
?>
<?php
$ary = array("a","b","c","d","e");
$str = join(",",$str); // puts array together into a string
echo $str; // Outputs "a,b,c,d,e"
?>
later...
--
Jeffrey D. Silverman |
je**********@jhu.edu
Website |
http://www.newtnotes.com
Drop "PANTS" to reply by email