Check if string contains specific word with PHP

1
2
<?php
$str = 'My name is Bryan Lusica';
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This code snippet will show you how to check if string contains specific word with PHP.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.