note 110135 deleted from function.preg-match-all by aharvey

From: Date: Mon, 24 Sep 2012 01:25:35 +0000
Subject: note 110135 deleted from function.preg-match-all by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190979@lists.php.net to get a copy of this message
Note Submitter: cdqzweb at qq dot com ---- You must notice the text's charset. Example: <?php $url = 'http://news.sohu.com' ; $subject = file_get_contents( $url ) ; $pattern = '/<A href="(.*)" target=_blank>(.*)<\/A>/i' ; preg_match_all( $pattern , $subject , $matches , PREG_PATTERN_ORDER ) ; print_r ( $matches ) ; ?> Out: no value.

« previous php.notes (#190979) next »