php insert variable in single quotes code example Example: append single quote around variable in php string echo "'$animal'";