aika Posted October 20, 2017 Report Share Posted October 20, 2017 SQL pieprasījumā apzināti netiek lietots LIKE BINARY , lai atrastos arī 'līdzīgie' ieraksti. Bet regexp, protams nav tik pielaidīga. Kā būtu jāuzlabo funkcija, lai marķējas visi noķertie 'fragmenti'?! Quote return preg_replace("/".preg_quote($crit, "/")."/i", "<span class='text-danger text-bold'>$0</span>", $text); Paldies! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.