didou Thu Dec 18 12:46:56 2003 EDT
Modified files: /phpdoc/en/reference/stream/functions stream-socket-client.xml /phpdoc/en/reference/strings/functions money-format.xml sscanf.xml /phpdoc/en/reference/var/functions get-defined-vars.xml get-resource-type.xml /phpdoc/en/reference/w32api reference.xml Log: some more CS Index: phpdoc/en/reference/stream/functions/stream-socket-client.xml diff -u phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.5 phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.6 --- phpdoc/en/reference/stream/functions/stream-socket-client.xml:1.5 Mon Dec 15 11:53:49 2003 +++ phpdoc/en/reference/stream/functions/stream-socket-client.xml Thu Dec 18 12:46:54 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.stream-socket-client"> <refnamediv> <refname>stream_socket_client</refname> @@ -88,7 +88,7 @@ } else { fputs($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) { - echo fgets($fp,1024); + echo fgets($fp, 1024); } fclose($fp); } Index: phpdoc/en/reference/strings/functions/money-format.xml diff -u phpdoc/en/reference/strings/functions/money-format.xml:1.5 phpdoc/en/reference/strings/functions/money-format.xml:1.6 --- phpdoc/en/reference/strings/functions/money-format.xml:1.5 Mon Jun 2 02:48:50 2003 +++ phpdoc/en/reference/strings/functions/money-format.xml Thu Dec 18 12:46:55 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.money-format"> <refnamediv> <refname>money_format</refname> @@ -229,12 +229,12 @@ // let's print the international format for the en_US locale setlocale(LC_MONETARY, 'en_US'); -echo money_format('%i', $number)."\n"; +echo money_format('%i', $number) . "\n"; // USD 1,234.56 // Italian national format with 2 decimals` setlocale(LC_MONETARY, 'it_IT'); -echo money_format('%.2n', $number)."\n"; +echo money_format('%.2n', $number) . "\n"; // L. 1.234,56 // Using a negative number @@ -243,25 +243,25 @@ // US national format, using () for negative numbers // and 10 digits for left precision setlocale(LC_MONETARY, 'en_US'); -echo money_format('%(#10n', $number)."\n"; +echo money_format('%(#10n', $number) . "\n"; // ($ 1,234.57) // Similar format as above, adding the use of 2 digits of right // precision and '*' as a fill character -echo money_format('%=*(#10.2n', $number)."\n"; +echo money_format('%=*(#10.2n', $number) . "\n"; // ($********1,234.57) // Let's justify to the left, with 14 positions of width, 8 digits of // left precision, 2 of right precision, withouth grouping character // and using the international format for the de_DE locale. setlocale(LC_MONETARY, 'de_DE'); -echo money_format('%=*^-14#8.2i', 1234.56)."\n"; +echo money_format('%=*^-14#8.2i', 1234.56) . "\n"; // DEM 1234,56**** // Let's add some blurb before and after the conversion specification setlocale(LC_MONETARY, 'en_GB'); $fmt = 'The final value is %i (after a 10%% discount)'; -echo money_format($fmt, 1234.56)."\n"; +echo money_format($fmt, 1234.56) . "\n"; // The final value is GBP 1,234.56 (after a 10% discount) ?> Index: phpdoc/en/reference/strings/functions/sscanf.xml diff -u phpdoc/en/reference/strings/functions/sscanf.xml:1.7 phpdoc/en/reference/strings/functions/sscanf.xml:1.8 --- phpdoc/en/reference/strings/functions/sscanf.xml:1.7 Mon Dec 15 11:53:50 2003 +++ phpdoc/en/reference/strings/functions/sscanf.xml Thu Dec 18 12:46:55 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.33 --> <refentry id="function.sscanf"> <refnamediv> @@ -40,7 +40,7 @@ // and the date of manufacturing $mandate = "January 01 2000"; list($month, $day, $year) = sscanf($mandate, "%s %d %d"); -echo "Item $serial was manufactured on: $year-".substr($month,0,3)."-$day\n"; +echo "Item $serial was manufactured on: $year-" . substr($month, 0, 3) . "-$day\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/var/functions/get-defined-vars.xml diff -u phpdoc/en/reference/var/functions/get-defined-vars.xml:1.5 phpdoc/en/reference/var/functions/get-defined-vars.xml:1.6 --- phpdoc/en/reference/var/functions/get-defined-vars.xml:1.5 Sun Jul 13 15:29:00 2003 +++ phpdoc/en/reference/var/functions/get-defined-vars.xml Thu Dec 18 12:46:55 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 --> <refentry id="function.get-defined-vars"> <refnamediv> @@ -24,7 +24,7 @@ <programlisting role="php"> <![CDATA[ <?php -$b = array(1,1,2,3,5,8); +$b = array(1, 1, 2, 3, 5, 8); $arr = get_defined_vars(); Index: phpdoc/en/reference/var/functions/get-resource-type.xml diff -u phpdoc/en/reference/var/functions/get-resource-type.xml:1.4 phpdoc/en/reference/var/functions/get-resource-type.xml:1.5 --- phpdoc/en/reference/var/functions/get-resource-type.xml:1.4 Sun Jul 13 15:29:00 2003 +++ phpdoc/en/reference/var/functions/get-resource-type.xml Thu Dec 18 12:46:55 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.75 --> <refentry id="function.get-resource-type"> <refnamediv> @@ -26,15 +26,15 @@ <?php // prints: mysql link $c = mysql_connect(); -echo get_resource_type($c)."\n"; +echo get_resource_type($c) . "\n"; // prints: file $fp = fopen("foo", "w"); -echo get_resource_type($fp)."\n"; +echo get_resource_type($fp) . "\n"; // prints: domxml document $doc = new_xmldoc("1.0"); -echo get_resource_type($doc->doc)."\n"; +echo get_resource_type($doc->doc) . "\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/w32api/reference.xml diff -u phpdoc/en/reference/w32api/reference.xml:1.5 phpdoc/en/reference/w32api/reference.xml:1.6 --- phpdoc/en/reference/w32api/reference.xml:1.5 Sat Jul 20 11:23:25 2002 +++ phpdoc/en/reference/w32api/reference.xml Thu Dec 18 12:46:56 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <reference id="ref.w32api"> <title>W32api functions</title> <titleabbrev>W32api</titleabbrev> @@ -82,8 +82,8 @@ $mins = floor($secs / 60); $hours = floor($mins / 60); -$str = sprintf("You have been using your computer for:". - "\r\n %d Milliseconds, or \r\n %d Seconds". +$str = sprintf("You have been using your computer for:" . + "\r\n %d Milliseconds, or \r\n %d Seconds" . "or \r\n %d mins or\r\n %d hours %d mins.", $ticks, $secs,