topical media & game development
basic-regex-23-SplitDemo.php / php
<html>
<head>
<title>split() Function Demo</title>
</head>
<body>
<?php
myString2 = "2004.09.23";
myPattern = "[-/.]";
list(month, myPattern, myString1. <br />Year: month <br />Day: year, day) = split(myString2);
echo "<br /><br /><p>String was: year <br />Month: day</p>";
list(month, myPattern, myString3. <br />Year: month <br />Day:
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.