I got tired of typing:
php -r 'echo strlen("<PASTE>");'So I made this site.
$s = 'This string contains exactly 42 characters';Result: 42
echo strlen($s);
s = "This string contains exactly 42 characters"Result: 42
print len(s)
var s = "This string contains exactly 42 characters";Result: 42
document.write s.length;
$s = "This string contains exactly 42 characters";Result: 42
print length($s);
#include <stdio.h>Result: 42
#include <string.h>
int main ()
{
char s[] = "This string contains exactly 42 characters";
printf ("%u", (unsigned)strlen(s));
return 0;
}
public class strlen {Result: 42
public static void main (String[] args) {
String s="This string contains exactly 42 characters"
System.out.println(s.length());
}
}
s = 'This string contains exactly 42 characters'Result: 42
print (string.len(s))
s = "This string contains exactly 42 characters"Result: 42
puts s.length
set s [string length "This string contains exactly 42 characters"]Result: 42
puts $s
echo -n "This string contains exactly 42 characters" | wc -cResult: 42
awk 'BEGIN{print length("This string contains exactly 42 characters")}'Result: 42
printf "This string contains exactly 42 characters" | dd of=/dev/null bs=1 2>&1 | grep in | cut -d "+" -f 1Result: 42