est - 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 est.php

  1. <?php
  2. $string = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://kilgray.com/memoqservices/2007">a:Generic</faultcode><faultstring xml:lang="en-US">An online project with the same name already exists.</faultstring><detail><GenericFault xmlns="http://kilgray.com/memoqservices/2007" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ErrorCode>Generic</ErrorCode></GenericFault></detail></s:Fault></s:Body></s:Envelope>';
  3.  
  4. if ($xml = simplexml_load_string($string)) {
  5. echo '123';
  6. } else {
  7.     echo "invalid xml format";
  8. }
File Description
  • est
  • PHP Code
  • 18 Jan-2023
  • 582 Bytes
You can Share it: