Splitting a String Based on a Found String : String Split : String PHP Source Code


PHP Source Code » String » String Split »

 

Splitting a String Based on a Found String



<html>
<head>
<title>preg_split</title>
</head>
<body>
<?php
     $date = "10/10.95";
   
     /* Allowed date delimiters are . / - */
     $date_array = preg_split("/[.-/]/", $date);
   
     var_dump($date_array);
?>
</body>
</html>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» String Split