Answers for "strlen() php"

PHP
11

ucfirst() php

<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function
Posted by: Guest on February-20-2020
11

how to check php string length

<?php
$name = 'abcdef';
echo strlen($str); // 6

$string = ' ab cd ';
echo strlen($str); // 7
?>
Posted by: Guest on August-24-2020
2

strlen php

<?php
echo strlen("Hello world!");	// will output 12
?>
Posted by: Guest on January-08-2021
6

php string length

<?php
$str = 'Hello World!';
echo strlen($str); // 12
?>
Posted by: Guest on April-22-2020
1

php serialize()

php array to be storable value in $_SESSION:
 serialize($array)
  serialized array element to be output on page:
unserialize($serializedArray)
Posted by: Guest on May-17-2020

Browse Popular Code Answers by Language