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