p 1000 - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
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 p 1000.php
- <?php
- $xml = '
- <html>
- <title>xxx</title>
- <p>
- <ht:news_item_title>Title 1</ht:news_item_title>
- <ht:news_item_snippet>Did you like this tool? You can donate to us. This will help us improve our free web tools.</ht:news_item_snippet>
- <ht:news_item_url>https://google.com</ht:news_item_url>
- <ht:news_item_source>google.com</ht:news_item_source>
- </p>
- <p>
- <ht:news_item_title>Title 2</ht:news_item_title>
- <ht:news_item_snippet>Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML</ht:news_item_snippet>
- <ht:news_item_url>https://youtube.com</ht:news_item_url>
- <ht:news_item_source>youtube.com</ht:news_item_source>
- </p>
- </html>
- ';
- preg_match_all('/\<p\>((?!\<\/p\>).){100,}\<\/p\>/ims', $xml, $items);
- print_r($items);