String Length
PHP
Easy
5 views
Problem Description
Print the length of the given string (bytes).
Input Format
One line string s.
Output Format
One integer length.
Official Solution
<?php
$s=stream_get_contents(STDIN);
$s=rtrim($s);
echo strlen($s);
?>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!