PHP Strpos
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
Grepper
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
<?php
$str = 'abcdef';
echo strlen($str); // 6
$str = ' ab cd ';
echo strlen($str); // 7
?>
<?php
$name = 'abcdef';
echo strlen($str); // 6
$string = ' ab cd ';
echo strlen($str); // 7
?>
<?php
$str = 'abcdef';
echo strlen($str); // 6
$str = ' ab cd ';
echo strlen($str); // 7
?>
<?php
$len = strlen("text goes here...")
?>
<?php
$string='YourString';
echo strlen($string); //outputs 10
/***
how do it will count
Y | o | u | r | S | t | r | i | n | g
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
***/
?>