character lenght 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
$str = 'abcdef';
echo strlen($str); // 6
$str = ' ab cd ';
echo strlen($str); // 7
?>
Also in PHP:
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Public/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- clear array php
- HOW TO GET LAST INSERTED ID FROM TABLE IN SQL IN CODEIGNITER
- cache laravel docs
- convert base64 to image php
- display custom post type
- codeigniter insert get id
- curl_multi_exec
- clear catche laravel
- date du jour en php
- array search not exists
- clear cahce config laravel in cpanel
- add checkbox in server side datatable laravel
- adding days to time value in php
- Impossible de trouver le paquet php-gettext
- adding spasifc date to date('Y-m-d H:i:s') php
- How to change add to cart button in wordpress
- filteredduplicata php
- Laravel php install command
- check string contain symbol in php
- create laravel 5.8 project using composer
- date formatting php
- e_notice in php
- add days in current date php