OPERAZIONI CON LE STRINGHE
$StringOne = "The quick brown fox"
$StringTwo = " jumps over the lazy dog."
Un punto concatena due stringhe: $StringSum = $StringOne . StringTwo
$StringSum = "The quick brown fox jumps over the lazy dog."
Lunghezza della stringa: strlen($StringSum) = 44
Posizione di una sottostringa: strpos($StringSum, 'fox') = 16
Conteggio delle parole in una stringa: str_word_count($StringSum) = 9
Aggiungi un carattere backslash prima del carattere specificato: addcslashes('World Wide Web', 'W') = \World \Wide \Web
Aggiungi un carattere backslash prima dei caratteri ', ", \ oppure NULL: addslashes("Un'onda sull'acqua") = Un\'onda sull\'acqua