If i have $word = "big words";
$word = "big words";
How can I only keep, let's say, the first 6 letters, so it becomes:
$word = "big wo";
(in PHP)
Substring function is what you need:
substr($word, 0, 6);
substr
substr, which actually features in almost all languages that have strings.