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