insert a variable into a string php code example Example: append variable into string php echo "'$animal'";