count character in php
/*
To measure the length of string there is built-in function in php which returns the exact length of string.
*/
Syntax:
strlen(paramenter);
<?php
$name = 'ankur';
echo "Name Length : ".strlen($name); // Name Length : 5
$message = 'Welcome greppers !';
echo "Message Length : ".strlen($message); // Message Length : 18
?>
/*
I hope it will help you.
Namaste
*/<?php
$name = 'abcdef';
echo strlen($str); // 6
$string = ' ab cd ';
echo strlen($str); // 7
?>
Also in PHP:
- array_push
- error php display
- Fatal error: Allowed memory size bytes exhausted (tried to allocate bytes)
- Use Laravel for server
- configure php 7.4 on ubuntu
- body field yml drupal config
- check string for value php
- display file error php
- find a word in string in php
- check string in wordjs
- date php day of wekk
- array laravel validation
- It is possible to perform an HTTPS redirect using PHP code as well as writing PHP code to prevent the browser from caching your we
- ci db query error
- data type checking php
- array reverse in php example
- codeigniter where order by
- Call to undefined function App\Http\Controllers\curl_init()
- array key exstis php
- do you need to clear cache laravel
- Which of the following Laravel frameworks can be used to manage the dependencies of a PHP software?
- change max_execution_time php.ini
- check if date is within range php
- check if contains a var php