From dd81f033d8b8942db16291400f3e1174fd6fc1a7 Mon Sep 17 00:00:00 2001 From: Paul Reinheimer Date: Thu, 20 Sep 2007 14:53:34 +0000 Subject: [PATCH] Updated to correct errors in my original patch, and follow the pear coding standards git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242735 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/is-float.xml | 42 +++++++++++++++++++++++++-- reference/var/functions/is-int.xml | 14 ++++----- reference/var/functions/is-string.xml | 42 ++++++++++++++++++++++++--- 3 files changed, 83 insertions(+), 15 deletions(-) diff --git a/reference/var/functions/is-float.xml b/reference/var/functions/is-float.xml index 5d9d01fedc..4117cb927a 100644 --- a/reference/var/functions/is-float.xml +++ b/reference/var/functions/is-float.xml @@ -1,9 +1,9 @@ - + is_float - Finds whether a variable is a float + Finds whether the type of a variable is float &reftitle.description; @@ -12,7 +12,7 @@ mixedvar - Finds whether the given variable is a float. + Finds whether the type of the given variable is float. @@ -44,6 +44,42 @@ &false; otherwise. + + &reftitle.examples; + + + <function>is_float</function> example + + +]]> + + &example.outputs; + + + + + + + &reftitle.seealso; diff --git a/reference/var/functions/is-int.xml b/reference/var/functions/is-int.xml index 0c1f8fe014..87f6d57868 100644 --- a/reference/var/functions/is-int.xml +++ b/reference/var/functions/is-int.xml @@ -1,5 +1,5 @@ - + is_int @@ -53,12 +53,10 @@ ]]> - &example.outputs.similar; + &example.outputs; - + is_string - Finds whether a variable is a string + Find whether the type of a variable is string &reftitle.description; @@ -12,7 +12,7 @@ mixedvar - Finds whether the given variable is a string. + Finds whether the type given variable is string. @@ -33,10 +33,44 @@ &reftitle.returnvalues; - Returns &true; if var is a string, + Returns &true; if var is of type string, &false; otherwise. + + &reftitle.examples; + + + <function>is_string</function> example + + +]]> + + &example.outputs; + + + + + + + &reftitle.seealso;