[ create a new paste ] login | about

Link: http://codepad.org/MnQ6z0Ez    [ raw code | output | fork ]

PHP, pasted on Nov 8:
1
2
3
4
5
6
7
<?php
$values = array("<p>abcd</p></script>", "<p><html>", "<html>", "</script><html>");
foreach($values as $value){
    if((!strstr($value, '<p>')) and (!strstr($value, '</script>'))){
        echo $value."\n";
    }
}


Output:
1
<html>


Create a new paste based on this one


Comments: