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