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.
Result of php executing
Full code of est.php
- <?php
- $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>';
- if ($xml = simplexml_load_string($string)) {
- echo '123';
- } else {
- echo "invalid xml format";
- }