check length of a string 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
*/
Also in PHP:
- fetch today data in php
- check if array has a key php
- check if current page is home url wordpress
- cmd clear cache laravel
- Use Laravel for server
- Codeigniter count query results
- doctrine query builder order by multiple
- check if an element in array is accesetphp
- currenturl phpü
- clear cache in php artisan
- error reporting 0 in hph
- clearing cache on live site laravel
- CREATE SEEDERS FROM DATABASES
- cakephp life cycle
- Eloquent Query Scope on Relationships
- apagar cache laravel
- duplicate values in array php
- webp image validation in laravel
- find substring in string php
- does php reverse array function
- enable reporting php
- CONNECT TO MYPHP DATABASE FROM connection .php
- check composer version terminal
- current url wordpress