check if string contains specific words inr
$a = 'Hello world?';
if (strpos($a, 'Hello') !== false) { //PAY ATTENTION TO !==, not !=
echo 'true';
}
if (stripos($a, 'HELLO') !== false) { //Case insensitive
echo 'true';
}
Also in PHP:
- after create a new laravel project and copy old project on it how insatall all packages
- Formate The Date inj php
- clear all cache laravle
- curl error (code 3) url malformed laravel
- Call to undefined function App\Models\str_slug()
- @foreach output reverse
- check if string contains specific words inr
- date time format 12 hour am pm php
- codeigniter load form_validation
- datetime form of date in php
- Delete Query with Where Condition in Codeigniter
- ext dom install
- convert object to array laravel
- find a specific word in a string php
- Error message: Allowed memory size of bytes exhausted wordpress
- WC_Product
- error reportin eall
- convert php timestamp to date
- How to Redirect Website to a Mobile Version when Accessed on a Mobile Device
- display errors on
- change url header php
- check type php
- ampps php mkdir recreate
- @if (session('status')) laravel