the m modifier to change the behavior of $
|
<?
$text = "Name: mattnoccupation: coderneyes: bluen"; preg_match_all( "/^w+:s+(.*)$/m", $text, $array );
foreach ( $array[1] as $val ) { print "$val<br>"; } ?>
|
|
|
|
|
HTML code for linking to this page:
Related in same category :
-
|