From cee1e32056816b92990e43fda10b021be708c1ff Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 18 Dec 2003 09:23:59 +0000 Subject: [PATCH] added example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146706 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/math/functions/mt-rand.xml | 28 +++++++++++++++++-- reference/math/functions/octdec.xml | 24 +++++++++++++++- .../functions/mime-content-type.xml | 24 +++++++++++++++- 3 files changed, 72 insertions(+), 4 deletions(-) diff --git a/reference/math/functions/mt-rand.xml b/reference/math/functions/mt-rand.xml index 7c6ec330d4..01c36bd68d 100644 --- a/reference/math/functions/mt-rand.xml +++ b/reference/math/functions/mt-rand.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,31 @@ between 5 and 15 (inclusive), for example, use mt_rand (5, 15). - + + + <function>mt_rand</function> example + + +]]> + + + The above example will output something similar to: + + + + + + ¬e.randomseed; diff --git a/reference/math/functions/octdec.xml b/reference/math/functions/octdec.xml index d822c28ed9..00f9576cc4 100644 --- a/reference/math/functions/octdec.xml +++ b/reference/math/functions/octdec.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,28 @@ The largest number that can be converted is 17777777777 or 2147483647 in decimal. + + + <function>octdec</function> example + + +]]> + + + The above example will output: + + + + + + See also decoct, bindec, diff --git a/reference/mime_magic/functions/mime-content-type.xml b/reference/mime_magic/functions/mime-content-type.xml index 1a6cc6389a..6708c7c294 100644 --- a/reference/mime_magic/functions/mime-content-type.xml +++ b/reference/mime_magic/functions/mime-content-type.xml @@ -1,5 +1,5 @@ - + mime_content_type @@ -17,6 +17,28 @@ Content types are returned in MIME format, like text/plain or application/octet-stream. + + + <function>mime_content_type</function> example + + +]]> + + + The above example will output: + + + + + +