Has the PHP solved your issue?
Actually, PHP was'nt my forte, but I thought I know how to do the counterpart in PHP.
Here's an explanation:
PHP Code:
<?php
$t='2007-08-08'; // Stores 2007-2008-08 to variable 't'
$pro=split('-',$t);
// Uses the split function having '-' as our patter to search for.
//Split function returns an array, so we need to loop through it.
for($i=0;$i<sizeof($pro);$i++)
// Starts the loop. Conditional statement;increments the loop
echo '- '.$pro[$i].'<br>';
// Since $pro holds the array values of split, we can call each data via its index.
// pro[0],pro[1],pro[2]....and so on
// We place $i in replacement of the fixed index.
?>
Hope that makes sense and does'nt confuse you that much.
Bookmarks