php export variable to string code example Example: php var_export to string $someString = var_export($anyVariable, true);