From 88f5107e6e57c05389fc28b81225aa492495a7d8 Mon Sep 17 00:00:00 2001 From: Alexander Voytsekhovskyy Date: Mon, 31 May 2004 08:03:30 +0000 Subject: [PATCH] Add some words about non-scalar default values git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@160135 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/functions.xml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/language/functions.xml b/language/functions.xml index f34ba9a41c..33ae9a8859 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -1,5 +1,5 @@ - + Functions @@ -249,7 +249,27 @@ Making a cup of cappuccino. Making a cup of espresso. - + + Also PHP allows you to use arrays and special type NULL as + default values, for example: + + Using non-scalar types as default values + + +]]> + + + + The default value must be a constant expression, not (for example) a variable, a class member or a function call.