From bd7fbc96901ffc03711be029df624542b46cd266 Mon Sep 17 00:00:00 2001 From: Zak Greant Date: Fri, 10 Nov 2000 06:02:49 +0000 Subject: [PATCH] Corrected error in recode_file prototype Added examples for recode_string and recode_file git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@35539 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/recode.xml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/functions/recode.xml b/functions/recode.xml index 3214c3d545..9bad7f67a7 100644 --- a/functions/recode.xml +++ b/functions/recode.xml @@ -36,13 +36,19 @@ Recode the string string according to - the recode request request. Returns - FALSE, if unable to comply, TRUE otherwise. + the recode request request. Returns the + recoded string or FALSE, if unable to perform the recode request. A simple recode request may be "lat1..iso646-de". See also the GNU Recode documentation of your installation for detailed instructions about recode requests. + + Basic <function>recode_string</function> example: + +print recode_string ("us..flat", "The following character has a diacritical mark: &aacute;"); + + @@ -81,22 +87,33 @@ Description - bool recode_file - int input - int output + boolean recode_file + string request + resource input + resource output Recode the file referenced by file handle input into the file referenced by file handle output according to the recode - request. Returns FALSE, if unable to comply, TRUE - otherwise. + request. Returns FALSE, if unable to + comply, TRUE otherwise. This function does not currently process filehandles referencing remote files (URLs). Both filehandles must refer to local files. + + + Basic <function>recode_file</function> example + +$input = fopen ('input.txt', 'r'); +$output = fopen ('output.txt', 'w'); +recode_file ("us..flat", $input, $output); + + +