sadsda - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of sadsda.php

  1.  
  2. include('https://github.com/samacs/simple_html_dom/blob/master/simple_html_dom.php');
  3. $html = new simple_html_dom();
  4.  
  5. // Load from a string
  6. $html->load('<html><body><p>Hello World!</p><p>Were here</p><input type="hidden" id="productBasePrice" value="1200.0000">
  7.  <input type="hidden" id="productFinalPrice" value="420.0000"></body></html>');
  8.  
  9.  
  10. foreach($html->find('input[id="productBasePrice"]') as $input) {
  11.  echo $input->value.'<br />';
  12. }
  13. ?>
  14.  
File Description
  • sadsda
  • PHP Code
  • 26 Sep-2020
  • 448 Bytes
You can Share it: