how to add a variable to a string in php code example Example: append variable into string php echo "'$animal'";