diff --git a/reference/var/functions/boolval.xml b/reference/var/functions/boolval.xml new file mode 100644 index 0000000000..245b0d7b1c --- /dev/null +++ b/reference/var/functions/boolval.xml @@ -0,0 +1,114 @@ + + + + + + boolval + Get the boolean value of a variable + + + + &reftitle.description; + + booleanboolval + mixedvar + + + Returns the boolean value of var. + + + + + &reftitle.parameters; + + + var + + + The scalar value being converted to a boolean. + + + + + + + + &reftitle.returnvalues; + + The boolean value of var. + + + + + &reftitle.examples; + + + <function>boolval</function> examples + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + floatval + intval + strval + settype + is_bool + Type juggling + + + + + + diff --git a/reference/var/functions/floatval.xml b/reference/var/functions/floatval.xml index 2992198652..c118835837 100644 --- a/reference/var/functions/floatval.xml +++ b/reference/var/functions/floatval.xml @@ -66,6 +66,7 @@ echo $float_value_of_var; // 122.34343 &reftitle.seealso; + boolval intval strval settype diff --git a/reference/var/functions/intval.xml b/reference/var/functions/intval.xml index 581e797da0..57da335d31 100644 --- a/reference/var/functions/intval.xml +++ b/reference/var/functions/intval.xml @@ -142,6 +142,7 @@ echo intval(array('foo', 'bar')); // 1 &reftitle.seealso; + boolval floatval strval settype diff --git a/reference/var/functions/strval.xml b/reference/var/functions/strval.xml index 8bf0c6d8a8..9ca3ccd19c 100644 --- a/reference/var/functions/strval.xml +++ b/reference/var/functions/strval.xml @@ -86,6 +86,7 @@ echo strval(new StrValTest); &reftitle.seealso; + boolval floatval intval settype diff --git a/reference/var/versions.xml b/reference/var/versions.xml index 3b62169a6f..88517d5113 100644 --- a/reference/var/versions.xml +++ b/reference/var/versions.xml @@ -5,6 +5,7 @@ --> + @@ -64,4 +65,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +-->