PHP Code:
$testdata = "W.tag:blogger.com,1999:blog-8701199.post-29495624028221418612007-05-29T21:48:00.000-07:002007-05-29T05:56:44.338-07:00";
$parts = explode( "post-", $testdata);
print_r( $parts );
echo "<br>";
$post_parts = explode( "-", $parts[1] );
print_r( $post_parts );
echo "<br>";
$post_ID = substr( $post_parts[0], 0, strlen( $post_parts[0]-4 ));
print_r( $post_ID );
echo "<br>";
$post_Year = substr( $post_parts[0], -4 );
echo "Year : " .$post_Year. "<br>" ;
$post_Month = $post_parts[1];
echo "Month : " .$post_Month. "<br>";
$Day_Time = explode("T", $post_parts[2] );
print_r( $Day_Time );
How do you want to slice up this info, this will show just a little of how to slice and dice this up.
PHP Code:
$paragraphs = explode( "<br><br><br><br>", $blog_text );
Is there a new line character in there "\n" ?
Bookmarks