didou Mon Dec 15 11:53:25 2003 EDT
Modified files: /phpdoc/en/reference/readline/functions readline.xml /phpdoc/en/reference/recode/functions recode-file.xml recode-string.xml /phpdoc/en/reference/regex reference.xml /phpdoc/en/reference/regex/functions ereg-replace.xml split.xml sql-regcase.xml /phpdoc/en/reference/tokenizer reference.xml /phpdoc/en/reference/tokenizer/functions token-get-all.xml Log: Merry XHTML and CS compliant christmas all \!
Index: phpdoc/en/reference/readline/functions/readline.xml diff -u phpdoc/en/reference/readline/functions/readline.xml:1.3 phpdoc/en/reference/readline/functions/readline.xml:1.4 --- phpdoc/en/reference/readline/functions/readline.xml:1.3 Wed Jul 16 13:20:01 2003 +++ phpdoc/en/reference/readline/functions/readline.xml Mon Dec 15 11:53:21 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/readline.xml, last change in rev 1.1 --> <refentry id="function.readline"> <refnamediv> @@ -26,15 +26,15 @@ <?php //get 3 commands from user for ($i=0; $i < 3; $i++) { - $line = readline ("Command: "); - readline_add_history ($line); + $line = readline("Command: "); + readline_add_history($line); } //dump history -print_r (readline_list_history()); +print_r(readline_list_history()); //dump variables -print_r (readline_info()); +print_r(readline_info()); ?> ]]> </programlisting> Index: phpdoc/en/reference/recode/functions/recode-file.xml diff -u phpdoc/en/reference/recode/functions/recode-file.xml:1.3 phpdoc/en/reference/recode/functions/recode-file.xml:1.4 --- phpdoc/en/reference/recode/functions/recode-file.xml:1.3 Wed Jul 16 13:20:06 2003 +++ phpdoc/en/reference/recode/functions/recode-file.xml Mon Dec 15 11:53:22 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/recode.xml, last change in rev 1.2 --> <refentry id="function.recode-file"> <refnamediv> @@ -33,9 +33,9 @@ <programlisting role="php"> <![CDATA[ <?php -$input = fopen ('input.txt', 'r'); -$output = fopen ('output.txt', 'w'); -recode_file ("us..flat", $input, $output); +$input = fopen('input.txt', 'r'); +$output = fopen('output.txt', 'w'); +recode_file("us..flat", $input, $output); ?> ]]> </programlisting> Index: phpdoc/en/reference/recode/functions/recode-string.xml diff -u phpdoc/en/reference/recode/functions/recode-string.xml:1.3 phpdoc/en/reference/recode/functions/recode-string.xml:1.4 --- phpdoc/en/reference/recode/functions/recode-string.xml:1.3 Wed Jul 16 13:20:06 2003 +++ phpdoc/en/reference/recode/functions/recode-string.xml Mon Dec 15 11:53:22 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/recode.xml, last change in rev 1.2 --> <refentry id="function.recode-string"> <refnamediv> @@ -27,7 +27,7 @@ <programlisting role="php"> <![CDATA[ <?php -print recode_string ("us..flat", "The following character has a diacritical mark: á"); +echo recode_string("us..flat", "The following character has a diacritical mark: á"); ?> ]]> </programlisting> Index: phpdoc/en/reference/regex/reference.xml diff -u phpdoc/en/reference/regex/reference.xml:1.8 phpdoc/en/reference/regex/reference.xml:1.9 --- phpdoc/en/reference/regex/reference.xml:1.8 Fri Jun 20 17:31:15 2003 +++ phpdoc/en/reference/regex/reference.xml Mon Dec 15 11:53:22 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <reference id="ref.regex"> <title>Regular Expression Functions (POSIX Extended)</title> <titleabbrev>Regexps</titleabbrev> @@ -88,28 +88,28 @@ <![CDATA[ <?php // Returns true if "abc" is found anywhere in $string. -ereg ("abc", $string); +ereg("abc", $string); // Returns true if "abc" is found at the beginning of $string. -ereg ("^abc", $string); +ereg("^abc", $string); // Returns true if "abc" is found at the end of $string. -ereg ("abc$", $string); +ereg("abc$", $string); // Returns true if client browser is Netscape 2, 3 or MSIE 3. -eregi ("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT); +eregi("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT); // Places three space separated words into $regs[1], $regs[2] and $regs[3]. -ereg ("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string,$regs); +ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs); // Put a <br /> tag at the beginning of $string. -$string = ereg_replace ("^", "<br />", $string); +$string = ereg_replace("^", "<br />", $string); // Put a <br /> tag at the end of $string. -$string = ereg_replace ("$", "<br />", $string); +$string = ereg_replace("$", "<br />", $string); // Get rid of any newline characters in $string. -$string = ereg_replace ("\n", "", $string); +$string = ereg_replace("\n", "", $string); ?> ]]> </programlisting> Index: phpdoc/en/reference/regex/functions/ereg-replace.xml diff -u phpdoc/en/reference/regex/functions/ereg-replace.xml:1.5 phpdoc/en/reference/regex/functions/ereg-replace.xml:1.6 --- phpdoc/en/reference/regex/functions/ereg-replace.xml:1.5 Sat Aug 16 14:59:12 2003 +++ phpdoc/en/reference/regex/functions/ereg-replace.xml Mon Dec 15 11:53:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 --> <refentry id="function.ereg-replace"> <refnamediv> @@ -51,9 +51,9 @@ <?php $string = "This is a test"; -echo ereg_replace (" is", " was", $string); -echo ereg_replace ("( )is", "\\1was", $string); -echo ereg_replace ("(( )is)", "\\2was", $string); +echo str_replace(" is", " was", $string); +echo ereg_replace("( )is", "\\1was", $string); +echo ereg_replace("(( )is)", "\\2was", $string); ?> ]]> Index: phpdoc/en/reference/regex/functions/split.xml diff -u phpdoc/en/reference/regex/functions/split.xml:1.3 phpdoc/en/reference/regex/functions/split.xml:1.4 --- phpdoc/en/reference/regex/functions/split.xml:1.3 Fri Jun 20 17:31:15 2003 +++ phpdoc/en/reference/regex/functions/split.xml Mon Dec 15 11:53:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/regex.xml, last change in rev 1.7 --> <refentry id="function.split"> <refnamediv> @@ -44,7 +44,7 @@ <![CDATA[ <?php list($user, $pass, $uid, $gid, $extra) = - split (":", $passwd_line, 5); + split(":", $passwd_line, 5); ?> ]]> </programlisting> @@ -70,7 +70,7 @@ <?php // Delimiters may be slash, dot, or hyphen $date = "04/30/1973"; -list($month, $day, $year) = split ('[/.-]', $date); +list($month, $day, $year) = split('[/.-]', $date); echo "Month: $month; Day: $day; Year: $year<br />\n"; ?> ]]> Index: phpdoc/en/reference/regex/functions/sql-regcase.xml diff -u phpdoc/en/reference/regex/functions/sql-regcase.xml:1.4 phpdoc/en/reference/regex/functions/sql-regcase.xml:1.5 --- phpdoc/en/reference/regex/functions/sql-regcase.xml:1.4 Sun Sep 21 15:31:10 2003 +++ phpdoc/en/reference/regex/functions/sql-regcase.xml Mon Dec 15 11:53:23 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 --> <refentry id="function.sql-regcase"> <refnamediv> @@ -27,7 +27,7 @@ <programlisting role="php"> <![CDATA[ <?php -echo sql_regcase ("Foo - bar."); +echo sql_regcase("Foo - bar."); ?> ]]> </programlisting> Index: phpdoc/en/reference/tokenizer/reference.xml diff -u phpdoc/en/reference/tokenizer/reference.xml:1.12 phpdoc/en/reference/tokenizer/reference.xml:1.13 --- phpdoc/en/reference/tokenizer/reference.xml:1.12 Fri Apr 25 16:22:16 2003 +++ phpdoc/en/reference/tokenizer/reference.xml Mon Dec 15 11:53:24 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <reference id="ref.tokenizer"> <title>Tokenizer functions</title> <titleabbrev>Tokenizer</titleabbrev> @@ -49,7 +49,7 @@ } else { // token array list($id, $text) = $token; - switch($id) { + switch ($id) { case T_COMMENT: case T_ML_COMMENT: // no action on comments Index: phpdoc/en/reference/tokenizer/functions/token-get-all.xml diff -u phpdoc/en/reference/tokenizer/functions/token-get-all.xml:1.5 phpdoc/en/reference/tokenizer/functions/token-get-all.xml:1.6 --- phpdoc/en/reference/tokenizer/functions/token-get-all.xml:1.5 Wed Aug 20 16:46:54 2003 +++ phpdoc/en/reference/tokenizer/functions/token-get-all.xml Mon Dec 15 11:53:25 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.token-get-all"> <refnamediv> <refname>token_get_all</refname> @@ -32,7 +32,7 @@ <?php $tokens = token_get_all('<?'); // => array(array(T_OPEN_TAG, '<?')); $tokens = token_get_all('<? echo; ?>'); /* => array( - array(T_OPEN_TAG,'<?'), + array(T_OPEN_TAG, '<?'), array(T_ECHO, 'echo'), ';', array(T_CLOSE_TAG, '?>') ); */