the m modifier to change the behavior of $ : Replace : String PHP Source Code


PHP Source Code » String » Replace »

 

the m modifier to change the behavior of $



<?

$text = "Name: mattnoccupation: coderneyes: bluen";
preg_match_all"/^w+:s+(.*)$/m", $text, $array );

foreach $array[1as $val ) {
    print "$val<br>";
}
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» Replace