From c36fe2ae4bbab1c8f4552daaa45c55093b5c5a1b Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sat, 30 Mar 2002 17:13:54 +0000 Subject: [PATCH] Some more error corrections in examples and explanations git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@75938 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/var.xml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/functions/var.xml b/functions/var.xml index 155a02f862..3a325d9543 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -1,5 +1,5 @@ - + Variable Functions Variables @@ -1053,7 +1053,7 @@ if (!odbc_execute ($stmt, &$sqldata)) { - + p "null" (since PHP 4.0.8) @@ -1324,8 +1324,7 @@ something function foo() { static $a; $a++; - echo "$a\n"; - + echo "$a\n"; unset($a); } @@ -1347,7 +1346,9 @@ foo(); - If you would like to unset a global variable inside of a function, you can use the $GLOBALS array to do so: + If you would like to unset a global variable + inside of a function, you can use + the $GLOBALS array to do so: - - - unset is a language construct. - - See also isset and empty. @@ -1424,7 +1420,8 @@ array(3) { */ -$b = 3.1; $c = TRUE; +$b = 3.1; +$c = TRUE; var_dump($b,$c); /* output: @@ -1432,7 +1429,7 @@ float(3.1) bool(true) */ -?>; +?> ]]> @@ -1445,7 +1442,7 @@ bool(true) var_export - Outputs or returns a string representation of avariable + Outputs or returns a string representation of a variable Description @@ -1505,7 +1502,7 @@ echo $v; - + is_callable