Jump to content
xisto Community

rubencas

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. HiYou can try this:Bla bla bla<br><span id="r">fha</span><br>bla<br><span> fsd </span><br><span id="er"><b>fhs</b></span><br>bla<br><br><?php//$a = $_SERVER['PHP_SELF'];$a = 'a.php';$wholefile = file_get_contents($a);preg_match_all("|<span id=\"er\">.*</span>|U",$wholefile, $out, PREG_PATTERN_ORDER);echo $out[0][0];?>The things above <?php> are the source file (in my case a.php, but you can also use the current file using the PHP_SELF constant).The match function searches for matches to the <span id="er">*****</span> filter.The result is an array of results, the first (and only in this case) is $out[0][0].CheersRuben
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.