Answers for "text size in php"

PHP
15

reducing the length of paragraph in php

$result = substr("Hello How are you", 0, 5); //first 5 chars "Hello"
Posted by: Guest on February-12-2020
1

php get string size

$str = "Hello Grepper!";
echo strlen($str); //echo 14
Posted by: Guest on July-12-2021
14

reducing the length of paragraph in php

$firstStringCharacter = substr("hello", 0, 1);
Posted by: Guest on October-19-2019

Browse Popular Code Answers by Language