$piece[3]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 5 && $piece[2] == "property") { $prop = strtolower(substr($piece[1], 3, strlen($piece[1]))); if(strstr($prop, "event")) $prop = "event"; similar_text(strtolower($request), strtolower($piece[3]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match == 0)) { echo "\$$prop->$piece[3] as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 5) { similar_text(strtolower($request), strtolower($piece[3]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match == 0)) { echo ""$piece[3]" as in the $piece[1] $piece[2]"; $i++; } } elseif(sizeof($piece) == 4 && $piece[1] == "enum") { similar_text(strtolower($request), strtolower($piece[2]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "
[$piece[2]Value] as in the $piece[2] $piece[1]s"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 4 && $piece[2] == "constructor") { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "$piece[1]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 4) { similar_text(strtolower($request), strtolower($piece[2]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "$piece[2]() as in the $GTK function"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 3 && $piece[2] == "constructor") { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "$piece[1]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "
"; } } elseif(sizeof($piece) == 3) { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "$piece[1] as in the $piece[1] class"; if($switch == 0) echo "?"; echo "
"; } } } } echo "