<?php function test($x) { $value="name >= vivek "; return strpos($value, $x); } $search = array("<",">","!=","<=",">="); $chars = array_filter( $search, "test" ); $count = count($chars); echo "Are there any search chars? ", $answer = ($count > 0)? 'Yes, as follows: ' : 'No.'; echo join(" ",$chars);
You have javascript disabled. You will not be able to edit any code.