---
layout: doc
title: general / save_variable
---
# save_variable

### NAME

    save_variable() - save the value of variable into a string

### SYNOPSIS

    string save_variable( mixed var );

### DESCRIPTION

    Saves  the  value of a variable to a string.  The format is the same as
    save/restore_object.

### SEE ALSO

    save_object(3)

