<?php

print "Lungimea <br />\n";

$s = "acesta este un text";
$sir = "stiu PHP stiu HTML stiu CSS";
 
# ce lungime are sirul? (numarul de caractere) 
print strlen( $s ); // 19

?>