From bcecf5d323aee39406d1a075f33498369939f4a6 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Fri, 30 May 2003 16:47:59 +0000 Subject: [PATCH] Added php tags () to examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129420 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/addcslashes.xml | 8 +++++++- reference/strings/functions/chr.xml | 4 +++- reference/strings/functions/chunk-split.xml | 7 ++++--- reference/strings/functions/fprintf.xml | 6 +++++- .../functions/get-html-translation-table.xml | 6 +++++- reference/strings/functions/localeconv.xml | 4 +++- reference/strings/functions/ord.xml | 4 +++- reference/strings/functions/soundex.xml | 4 +++- reference/strings/functions/sprintf.xml | 14 +++++++++++++- reference/strings/functions/sscanf.xml | 6 +++++- reference/strings/functions/str-ireplace.xml | 4 +++- reference/strings/functions/str-pad.xml | 4 +++- reference/strings/functions/str-repeat.xml | 4 +++- reference/strings/functions/str-replace.xml | 4 +++- reference/strings/functions/strcasecmp.xml | 4 +++- reference/strings/functions/strip-tags.xml | 4 +++- reference/strings/functions/strnatcmp.xml | 4 +++- reference/strings/functions/strrchr.xml | 4 +++- reference/strings/functions/strrev.xml | 4 ++-- reference/strings/functions/strspn.xml | 4 +++- reference/strings/functions/strstr.xml | 4 +++- reference/strings/functions/strtolower.xml | 4 +++- reference/strings/functions/strtoupper.xml | 4 +++- reference/strings/functions/ucfirst.xml | 4 +++- reference/strings/functions/ucwords.xml | 4 +++- reference/strings/functions/wordwrap.xml | 6 +++++- 26 files changed, 100 insertions(+), 29 deletions(-) diff --git a/reference/strings/functions/addcslashes.xml b/reference/strings/functions/addcslashes.xml index be24b0179b..145633794a 100644 --- a/reference/strings/functions/addcslashes.xml +++ b/reference/strings/functions/addcslashes.xml @@ -1,5 +1,5 @@ - + @@ -35,7 +35,9 @@ <function>addcslashes</function> example ]]> @@ -47,11 +49,13 @@ $escaped = addcslashes($not_escaped, "\0..\37!@\177..\377"); ]]> @@ -63,8 +67,10 @@ echo addcslashes('foo[ ]', 'A..z'); ]]> diff --git a/reference/strings/functions/chr.xml b/reference/strings/functions/chr.xml index 579398e46b..23a28110e1 100644 --- a/reference/strings/functions/chr.xml +++ b/reference/strings/functions/chr.xml @@ -1,5 +1,5 @@ - + @@ -19,11 +19,13 @@ <function>chr</function> example ]]> diff --git a/reference/strings/functions/chunk-split.xml b/reference/strings/functions/chunk-split.xml index 02681c3b97..6aecf2a1f2 100644 --- a/reference/strings/functions/chunk-split.xml +++ b/reference/strings/functions/chunk-split.xml @@ -1,5 +1,5 @@ - + @@ -25,9 +25,10 @@ <function>chunk_split</function> example ]]> diff --git a/reference/strings/functions/fprintf.xml b/reference/strings/functions/fprintf.xml index a9d19e7f2e..3a8b934df6 100644 --- a/reference/strings/functions/fprintf.xml +++ b/reference/strings/functions/fprintf.xml @@ -1,5 +1,5 @@ - + fprintf @@ -134,7 +134,9 @@ <function>sprintf</function>: zero-padded integers ]]> @@ -142,12 +144,14 @@ $isodate = sprintf("%04d-%02d-%02d", $year, $month, $day); <function>sprintf</function>: formatting currency ]]> diff --git a/reference/strings/functions/get-html-translation-table.xml b/reference/strings/functions/get-html-translation-table.xml index 65307f07e0..996a185ae4 100644 --- a/reference/strings/functions/get-html-translation-table.xml +++ b/reference/strings/functions/get-html-translation-table.xml @@ -1,5 +1,5 @@ - + @@ -39,9 +39,11 @@ Translation Table Example & Krämer"; $encoded = strtr($str, $trans); +?> ]]> @@ -55,8 +57,10 @@ $encoded = strtr($str, $trans); ]]> diff --git a/reference/strings/functions/localeconv.xml b/reference/strings/functions/localeconv.xml index 0dd5d3fa5d..2ab63a3a1b 100644 --- a/reference/strings/functions/localeconv.xml +++ b/reference/strings/functions/localeconv.xml @@ -1,5 +1,5 @@ - + @@ -174,6 +174,7 @@ <function>localeconv</function> example \n"; +?> ]]> diff --git a/reference/strings/functions/ord.xml b/reference/strings/functions/ord.xml index dfb4bd400b..d7a6336282 100644 --- a/reference/strings/functions/ord.xml +++ b/reference/strings/functions/ord.xml @@ -1,5 +1,5 @@ - + @@ -20,9 +20,11 @@ <function>ord</function> example ]]> diff --git a/reference/strings/functions/soundex.xml b/reference/strings/functions/soundex.xml index b80df61c24..274b207d87 100644 --- a/reference/strings/functions/soundex.xml +++ b/reference/strings/functions/soundex.xml @@ -1,5 +1,5 @@ - + @@ -32,12 +32,14 @@ Soundex Examples ]]> diff --git a/reference/strings/functions/sprintf.xml b/reference/strings/functions/sprintf.xml index 7e439f2cdd..6d3625e2ae 100644 --- a/reference/strings/functions/sprintf.xml +++ b/reference/strings/functions/sprintf.xml @@ -1,5 +1,5 @@ - + @@ -125,8 +125,10 @@ Argument swapping ]]> @@ -138,8 +140,10 @@ printf($format,$num,$location); Argument swapping ]]> @@ -152,8 +156,10 @@ printf($format,$num,$location); Argument swapping ]]> @@ -163,9 +169,11 @@ printf($format,$num,$location); Argument swapping ]]> @@ -184,7 +192,9 @@ printf($format, $num, $location); <function>sprintf</function>: zero-padded integers ]]> @@ -192,12 +202,14 @@ $isodate = sprintf("%04d-%02d-%02d", $year, $month, $day); <function>sprintf</function>: formatting currency ]]> diff --git a/reference/strings/functions/sscanf.xml b/reference/strings/functions/sscanf.xml index 17971e06d2..ac1eead7dd 100644 --- a/reference/strings/functions/sscanf.xml +++ b/reference/strings/functions/sscanf.xml @@ -1,5 +1,5 @@ - + @@ -34,12 +34,14 @@ <function>sscanf</function> Example ]]> @@ -50,6 +52,7 @@ echo "Item $serial was manufactured on: $year-".substr($month,0,3)."-$day\n"; <function>sscanf</function> - using optional parameters $first $last \n"; +?> ]]> diff --git a/reference/strings/functions/str-ireplace.xml b/reference/strings/functions/str-ireplace.xml index 4b5a62ba73..6047ed67e4 100644 --- a/reference/strings/functions/str-ireplace.xml +++ b/reference/strings/functions/str-ireplace.xml @@ -1,5 +1,5 @@ - + @@ -49,7 +49,9 @@ <function>str_ireplace</function> example "); +?> ]]> diff --git a/reference/strings/functions/str-pad.xml b/reference/strings/functions/str-pad.xml index ceb82f143d..3c9f702508 100644 --- a/reference/strings/functions/str-pad.xml +++ b/reference/strings/functions/str-pad.xml @@ -1,5 +1,5 @@ - + @@ -41,10 +41,12 @@ <function>str_pad</function> example ]]> diff --git a/reference/strings/functions/str-repeat.xml b/reference/strings/functions/str-repeat.xml index 5c3cd55673..7c5d9bbf9e 100644 --- a/reference/strings/functions/str-repeat.xml +++ b/reference/strings/functions/str-repeat.xml @@ -1,5 +1,5 @@ - + @@ -24,7 +24,9 @@ <function>str_repeat</function> example ]]> diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index b7c395cef0..330d3cfb86 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -53,7 +53,9 @@ <function>str_replace</function> example "); +?> ]]> diff --git a/reference/strings/functions/strcasecmp.xml b/reference/strings/functions/strcasecmp.xml index 29b3b54664..44bd8e86b6 100644 --- a/reference/strings/functions/strcasecmp.xml +++ b/reference/strings/functions/strcasecmp.xml @@ -1,5 +1,5 @@ - + @@ -24,11 +24,13 @@ <function>strcasecmp</function> example ]]> diff --git a/reference/strings/functions/strip-tags.xml b/reference/strings/functions/strip-tags.xml index cde68a346f..026cfb2fe2 100644 --- a/reference/strings/functions/strip-tags.xml +++ b/reference/strings/functions/strip-tags.xml @@ -1,5 +1,5 @@ - + @@ -35,7 +35,9 @@ <function>strip_tags</function> example '); +?> ]]> diff --git a/reference/strings/functions/strnatcmp.xml b/reference/strings/functions/strnatcmp.xml index 854c38ba8b..e8cd4e9df8 100644 --- a/reference/strings/functions/strnatcmp.xml +++ b/reference/strings/functions/strnatcmp.xml @@ -1,5 +1,5 @@ - + @@ -25,6 +25,7 @@ ]]> diff --git a/reference/strings/functions/strrchr.xml b/reference/strings/functions/strrchr.xml index 13d1b16c0b..33f5453e76 100644 --- a/reference/strings/functions/strrchr.xml +++ b/reference/strings/functions/strrchr.xml @@ -1,5 +1,5 @@ - + @@ -35,12 +35,14 @@ <function>strrchr</function> example ]]> diff --git a/reference/strings/functions/strrev.xml b/reference/strings/functions/strrev.xml index 94065346eb..11b1ef6d15 100644 --- a/reference/strings/functions/strrev.xml +++ b/reference/strings/functions/strrev.xml @@ -1,5 +1,5 @@ - + @@ -18,7 +18,7 @@ Reversing a string with <function>strrev</function> ]]> diff --git a/reference/strings/functions/strspn.xml b/reference/strings/functions/strspn.xml index 04d686d05d..6385e27ed2 100644 --- a/reference/strings/functions/strspn.xml +++ b/reference/strings/functions/strspn.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,9 @@ ]]> diff --git a/reference/strings/functions/strstr.xml b/reference/strings/functions/strstr.xml index 9eccd709de..11ae63ec07 100644 --- a/reference/strings/functions/strstr.xml +++ b/reference/strings/functions/strstr.xml @@ -1,5 +1,5 @@ - + @@ -36,9 +36,11 @@ <function>strstr</function> example ]]> diff --git a/reference/strings/functions/strtolower.xml b/reference/strings/functions/strtolower.xml index 2b10239c62..3557a4280e 100644 --- a/reference/strings/functions/strtolower.xml +++ b/reference/strings/functions/strtolower.xml @@ -1,5 +1,5 @@ - + @@ -25,9 +25,11 @@ <function>strtolower</function> example ]]> diff --git a/reference/strings/functions/strtoupper.xml b/reference/strings/functions/strtoupper.xml index b1824ed122..30939c7560 100644 --- a/reference/strings/functions/strtoupper.xml +++ b/reference/strings/functions/strtoupper.xml @@ -1,5 +1,5 @@ - + @@ -25,9 +25,11 @@ <function>strtoupper</function> example ]]> diff --git a/reference/strings/functions/ucfirst.xml b/reference/strings/functions/ucfirst.xml index aaee838dd0..7ecf1ca370 100644 --- a/reference/strings/functions/ucfirst.xml +++ b/reference/strings/functions/ucfirst.xml @@ -1,5 +1,5 @@ - + @@ -25,12 +25,14 @@ <function>ucfirst</function> example ]]> diff --git a/reference/strings/functions/ucwords.xml b/reference/strings/functions/ucwords.xml index 5cba06b026..a499f2569c 100644 --- a/reference/strings/functions/ucwords.xml +++ b/reference/strings/functions/ucwords.xml @@ -1,5 +1,5 @@ - + @@ -22,12 +22,14 @@ <function>ucwords</function> example ]]> diff --git a/reference/strings/functions/wordwrap.xml b/reference/strings/functions/wordwrap.xml index 38227a7134..44ed413c06 100644 --- a/reference/strings/functions/wordwrap.xml +++ b/reference/strings/functions/wordwrap.xml @@ -1,5 +1,5 @@ - + @@ -46,10 +46,12 @@ <function>wordwrap</function> example ]]> @@ -69,10 +71,12 @@ lazy dog. <function>wordwrap</function> example ]]>