How can I take a string and limit it? for example:
a string like: "The lazy dog jumps over something"
limited to 15 characters would turn out:
"The lazy dog ju"
Thanks!
$newstring = substr($oldstring, 0, 15);
and to find the length:
print strlen("12345"); // prints 5.