From 1ea6d0f6ce8b3e1938e6de72777f822c830a3286 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Fri, 30 May 2003 16:36:18 +0000 Subject: [PATCH] Example WS and php tags git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129419 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/money-format.xml | 64 +++++++++---------- reference/strings/functions/number-format.xml | 24 +++---- reference/strings/functions/strtok.xml | 20 ++++-- reference/strings/functions/strtr.xml | 8 ++- 4 files changed, 62 insertions(+), 54 deletions(-) diff --git a/reference/strings/functions/money-format.xml b/reference/strings/functions/money-format.xml index 8c9f4b6d2b..8d06067422 100644 --- a/reference/strings/functions/money-format.xml +++ b/reference/strings/functions/money-format.xml @@ -1,5 +1,5 @@ - + money_format @@ -218,44 +218,44 @@ ]]> diff --git a/reference/strings/functions/number-format.xml b/reference/strings/functions/number-format.xml index 0a883ed882..b6fb162684 100644 --- a/reference/strings/functions/number-format.xml +++ b/reference/strings/functions/number-format.xml @@ -1,5 +1,5 @@ - + @@ -58,21 +58,21 @@ ]]> diff --git a/reference/strings/functions/strtok.xml b/reference/strings/functions/strtok.xml index 9acd43ad27..ed9cf0ed67 100644 --- a/reference/strings/functions/strtok.xml +++ b/reference/strings/functions/strtok.xml @@ -1,5 +1,5 @@ - + @@ -24,6 +24,7 @@ <function>strtok</function> example "; $tok = strtok(" \n\t"); } +?> ]]> @@ -53,14 +55,16 @@ while ($tok) { Old <function>strtok</function> behavior ]]> @@ -68,14 +72,16 @@ while ($tok) { New <function>strtok</function> behavior ]]> diff --git a/reference/strings/functions/strtr.xml b/reference/strings/functions/strtr.xml index bab50c4710..f7e3ef9060 100644 --- a/reference/strings/functions/strtr.xml +++ b/reference/strings/functions/strtr.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,9 @@ <function>strtr</function> example ]]> @@ -52,8 +54,8 @@ $addr = strtr($addr, " "hi", "hi" => "hello"); - echo strtr("hi all, I said hello", $trans); +$trans = array("hello" => "hi", "hi" => "hello"); +echo strtr("hi all, I said hello", $trans); ?> ]]>