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 +*/ +?> + +]]> + + + + + +