Ma sei sicuro che la variabile non sia vuota? Prova a dare un "echo $stringa;" prima di scrivere...