Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

GianFranco

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
   echo "<h1>Hello, PHP!</h1>\n";
   
   $cabecera[0]="Test";
   
   $userinfo = '<div class="contenedor-panel">
                    <div class="panel-ficha">
                        echo $cabecera[0]["NOMBRE_CABECERA"];
                    </div>
                </div>';

   /*preg_match_all ("/(?< =<).php(.*).(?=>)/", $userinfo, $pat_array);*/

   echo $userinfo;

   preg_match_all ("/\<\?php(.*?)\?\>/", $userinfo, $pat_array);


  foreach($pat_array[0] as $x){
      echo "$x<br>";
      print $x."<br>";
  };

   /*print $pat_array[0][0]." <br> ".$pat_array[0][1]."\n";*/
?>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.