I need to append the following code to the end to all the php files in a directory and its sub directory:
I usually use tee because I think it looks a little cleaner and it generally fits on one line.
echo "my text" | tee -a *.php