Serch String in php - Php

Serch String in php

Snippet Code


  
Rate this page :
  [ 0 votes]

true

<?php function searchstr($findstr,$string) { if(preg_match("/$findstr/","$string")) return true; else return false; } searchstr("hiox","hioxindia"); >?

Tags


Ask Questions

Ask Question