From c96e2854ab9c4f7a0192f71251b6104262c14a16 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sat, 15 Dec 2001 14:45:15 +0000 Subject: [PATCH] - Added var_export documentation git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65163 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/var.xml | 68 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/functions/var.xml b/functions/var.xml index 21ddc94191..4141245359 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -1,5 +1,5 @@ - + Variable Functions Variables @@ -1456,6 +1456,72 @@ bool(true) + + + + var_export + Outputs or returns a string representation of avariable + + + Description + + + mixed var_export + mixed expression + int return + + + + This function returns structured information about the variable that is + passed to this function. It is similar to var_dump + with the exception that the returned representation is valid PHP code. + + + You can also return the variable representation by using &true; as + second parameter to this function. + + + Compare var_export to + var_dump. + + + + + + 1, + 1 => 2, + 2 => + array ( + 0 => 'a', + 1 => 'b', + 2 => 'c', + ), +) +*/ + +$b = 3.1; +$v = var_export($b, TRUE); +echo $v; + +/* output: +3.1 +*/ +?> + +]]> + + + + + +