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