---
layout: doc
title: contrib / restore_from_string.pre
---
# restore_from_string

### NAME

    restore_from_string() - like restore_object(), but restores variables from
    a string where the string is in the same format as from restore_object()

### SYNOPSIS

    void restore_from_string(string, int default:0);

### DESCRIPTION

    uses string as restore_object uses file meaning of int the same

### SEE ALSO

    restore_object(3)
