String Length (Limit and reveal)

I currently have a script that will limit the amount of words string. instead i want it to display all of the text upon clicking a read more link at the end. is this possible with php?