cvs: phpdoc /ja/language variables.xml
| From: | Masaki Fujimoto | Date: | Wed, 12 Dec 2001 14:41:23 +0000 |
| Subject: | cvs: phpdoc /ja/language variables.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969339664@lists.php.net to get a copy of this message | ||
fujimoto Wed Dec 12 09:41:23 2001 EDT
Modified files:
/phpdoc/ja/language variables.xml
Log:
updated translation (up to 1.25).
Index: phpdoc/ja/language/variables.xml diff -u phpdoc/ja/language/variables.xml:1.13 phpdoc/ja/language/variables.xml:1.14 --- phpdoc/ja/language/variables.xml:1.13 Wed Nov 14 17:55:26 2001 +++ phpdoc/ja/language/variables.xml Wed Dec 12 09:41:22 2001 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14 $ --> <chapter id="language.variables"> <title>夿°</title> @@ -28,6 +29,7 @@ <para> <informalexample> <programlisting role="php"> +<![CDATA[ $var = "Bob"; $Var = "Joe"; echo "$var, $Var"; // "Bob, Joe"ãåºåãã¾ãã @@ -35,6 +37,7 @@ $4site = 'not yet'; // ç¡å¹ï¼æ°åã§å§ã¾ã£ã¦ããã $_4site = 'not yet'; // æå¹ï¼ã¢ã³ãã¼ã¹ã³ã¢ã§å§ã¾ã£ã¦ããã $täyte = 'mansikka'; // æå¹ï¼'ä' ã¯ã¢ã¹ãã¼ã³ã¼ã228ã§ãã +]]> </programlisting> </informalexample> </para> @@ -65,13 +68,15 @@ <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $foo = 'Bob'; // å¤'Bob'ã$fooã«ä»£å ¥ããã -$bar = &$foo; // $fooã$barã«ããåç § +$bar = &$foo; // $fooã$barã«ããåç § $bar = "My name is $bar"; // $barã夿´... echo $foo; // $fooã夿´ãããã echo $bar; -?> +?> +]]> </programlisting> </informalexample> </para> @@ -81,17 +86,19 @@ ã¨ãããã¨ãããã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $foo = 25; -$bar = &$foo; // ããã¯æå¹ãªä»£å ¥ã§ãã -$bar = &(24 * 7); // ç¡å¹ã§ããååã®ãªãå¼ãåç §ãã¦ãã¾ãã +$bar = &$foo; // ããã¯æå¹ãªä»£å ¥ã§ãã +$bar = &(24 * 7); // ç¡å¹ã§ããååã®ãªãå¼ãåç §ãã¦ãã¾ãã function test() { return 25; } -$bar = &test(); // ç¡å¹ã -?> +$bar = &test(); // ç¡å¹ã +?> +]]> </programlisting> </informalexample> </para> @@ -570,8 +577,10 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; include "b.inc"; +]]> </programlisting> </informalexample> <simpara> @@ -583,13 +592,15 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; /* ã°ãã¼ãã«ã¹ã³ã¼ã */ -Function Test () { +Function Test() { echo $a; /* ãã¼ã«ã«ã¹ã³ã¼ã夿°ã®åç § */ } -Test (); +Test(); +]]> </programlisting> </informalexample> <simpara> @@ -605,17 +616,19 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; $b = 2; -Function Sum () { +Function Sum() { global $a, $b; $b = $a + $b; } -Sum (); +Sum(); echo $b; +]]> </programlisting> </informalexample> <simpara> @@ -632,15 +645,17 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; $b = 2; -Function Sum () { +Function Sum() { $GLOBALS["b"] = $GLOBALS["a"] + $GLOBALS["b"]; } -Sum (); +Sum(); echo $b; +]]> </programlisting> </informalexample> <simpara> @@ -655,11 +670,13 @@ </simpara> <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { $a = 0; echo $a; $a++; } +]]> </programlisting> </informalexample> <simpara> @@ -672,11 +689,13 @@ </simpara> <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { static $a = 0; echo $a; $a++; } +]]> </programlisting> </informalexample> <simpara> @@ -694,16 +713,18 @@ <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { static $count = 0; $count++; echo $count; - if ($count < 10) { - Test (); + if ($count < 10) { + Test(); } $count--; } +]]> </programlisting> </informalexample> @@ -719,7 +740,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = "hello"; +]]> </programlisting> </informalexample> <simpara> @@ -729,7 +752,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $$a = "world"; +]]> </programlisting> </informalexample> @@ -740,7 +765,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ echo "$a ${$a}"; +]]> </programlisting> </informalexample> <simpara> @@ -748,7 +775,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ echo "$a $hello"; +]]> </programlisting> </informalexample> <simpara> @@ -791,10 +820,12 @@ <example> <title>åç´ãªãã©ã¼ã 夿°</title> <programlisting role="php"> -<form action="foo.php" method="post"> - Name: <input type="text" name="username"><br> - <input type="submit"> -</form> +<![CDATA[ +<form action="foo.php" method="post"> + Name: <input type="text" name="username"><br> + <input type="submit"> +</form> +]]> </programlisting> </example> </para> @@ -807,27 +838,42 @@ <varname>$username</varname> ã¨ãã¦å©ç¨å¯è½ã¨ãªãã¾ãã </para> - <simpara> - PHPã§ã¯ãã©ã¼ã 夿°ã®ã³ã³ããã¹ãå ã§é åã使ç¨å¯è½ã§ããä¾ãã°ã - é¢é£ãã夿°ãã°ã«ã¼ãåããããselect inputã§è¤æ°ã®å¤ãåå¾ãã - ã¨ãã£ããã¨ãå¯è½ã§ãã + <note> + <para> + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>ã®è¨å® + ã¯GETãPOSTããã¦Cookieã®å¤ã«å½±é¿ãã¾ããonã«ãªã£ã¦ãã㨠(It's + "PHP!") ã¨ããå¤ã¯èªåçã« (It\'s \"PHP!\") ã¨ãªããDBã¸ã®æ¿å ¥æã® + ã¨ã¹ã±ã¼ããä¸è¦ã«ãªãã¾ãã<function>addslashes</function>ã + <function>stripslashes</function>ããã¦<link + linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>ã + åç §ãã¦ãã ããã + </para> + </note> + + <simpara> + PHPã§ã¯ãã©ã¼ã 夿°ã®ã³ã³ããã¹ãå ã§é åã使ç¨å¯è½ã§ã(<link + linkend="faq.html">FAQã®é¢é£ç®æ</link>ãåç §ãã¦ãã ãã)ã + ä¾ãã°ãé¢é£ãã夿°ãã°ã«ã¼ãåããããselect inputã§è¤æ°ã®å¤ã + åå¾ããã¨ãã£ããã¨ãå¯è½ã§ãã </simpara> <para> <example> <title>ããè¤éãªãã©ã¼ã 夿°</title> <programlisting> -<form action="array.php" method="post"> - Name: <input type="text" name="personal[name]"><br> - Email: <input type="text" name="personal[email]"><br> - Beer: <br> - <select multiple name="beer[]"> - <option value="warthog">Warthog - <option value="guinness">Guinness - <option value="stuttgarter">Stuttgarter Schwabenbräu - </select> - <input type="submit"> -</form> +<![CDATA[ +<form action="array.php" method="post"> + Name: <input type="text" name="personal[name]"><br> + Email: <input type="text" name="personal[email]"><br> + Beer: <br> + <select multiple name="beer[]"> + <option value="warthog">Warthog + <option value="guinness">Guinness + <option value="stuttgarter">Stuttgarter Schwabenbräu + </select> + <input type="submit"> +</form> +]]> </programlisting> </example> </para> @@ -843,9 +889,12 @@ ãã©ã¼ã ãæç¨¿ããéãæ¬¡ã®ã¿ã°ã®ããã«æ¨æºã®æç¨¿ãã¿ã³ã®ä»£ããã« ç»åã使ç¨ãããã¨ãã§ãã¾ãã </simpara> + <informalexample> <programlisting role="php"> -<input type=image src="image.gif" name="sub"> +<![CDATA[ +<input type="image" src="image.gif" name="sub"> +]]> </programlisting> </informalexample> <simpara> @@ -879,7 +928,9 @@ </simpara> <informalexample> <programlisting role="php"> -SetCookie ("MyCookie[]", "Testing", time()+3600); +<![CDATA[ +setcookie("MyCookie[]", "Testing", time()+3600); +]]> </programlisting> </informalexample> <simpara> @@ -893,9 +944,11 @@ <example> <title><function>SetCookie</function>ã®ä¾</title> <programlisting role="php"> +<![CDATA[ $Count++; -SetCookie ("Count", $Count, time()+3600); -SetCookie ("Cart[$Count]", $item, time()+3600); +setcookie("Count", $Count, time()+3600); +setcookie("Cart[$Count]", $item, time()+3600); +]]> </programlisting> </example> </sect2> @@ -906,8 +959,10 @@ <para> PHP ã¯ãç°å¢å¤æ°ãèªåçã«é常㮠PHP 夿°ã¨ãã¦ä½¿ç¨å¯è½ã¨ãã¾ãã <informalexample> - <programlisting> + <programlisting role="php"> +<![CDATA[ echo $HOME; /* ç°å¢å¤æ° HOME ãè¨å®ããã¦ããå ´åã表示ãã¾ãã */ +]]> </programlisting> </informalexample> </para> @@ -929,7 +984,9 @@ ããã(ããªãªããçµæ¢ç¬¦)ã¯PHPã®å¤æ°åã§æå¹ãªæåã§ã¯ãªãã¨ããã ã¨ã«æ³¨æããå¿ è¦ãããã¾ããæ¬¡ã®ä¾ãè¦ã¦ã¿ã¾ãããã <programlisting role="php"> +<![CDATA[ $varname.ext; /* ç¡å¹ãªå¤æ°å */ +]]> </programlisting> ããã§ããã¼ãµã¯ã $varname ã¨ããååã®å¤æ°ã®å¾ã«æååçµåæ¼ç® åãããããã®å¾ã«ãè£¸ã®æåå(ããªãã¡ãæ¢ç¥ã®ãã¼ã¾ãã¯äºç´èªã«
Index: phpdoc/ja/language/variables.xml diff -u phpdoc/ja/language/variables.xml:1.13 phpdoc/ja/language/variables.xml:1.14 --- phpdoc/ja/language/variables.xml:1.13 Wed Nov 14 17:55:26 2001 +++ phpdoc/ja/language/variables.xml Wed Dec 12 09:41:22 2001 @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.14 $ --> <chapter id="language.variables"> <title>夿°</title> @@ -28,6 +29,7 @@ <para> <informalexample> <programlisting role="php"> +<![CDATA[ $var = "Bob"; $Var = "Joe"; echo "$var, $Var"; // "Bob, Joe"ãåºåãã¾ãã @@ -35,6 +37,7 @@ $4site = 'not yet'; // ç¡å¹ï¼æ°åã§å§ã¾ã£ã¦ããã $_4site = 'not yet'; // æå¹ï¼ã¢ã³ãã¼ã¹ã³ã¢ã§å§ã¾ã£ã¦ããã $täyte = 'mansikka'; // æå¹ï¼'ä' ã¯ã¢ã¹ãã¼ã³ã¼ã228ã§ãã +]]> </programlisting> </informalexample> </para> @@ -65,13 +68,15 @@ <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $foo = 'Bob'; // å¤'Bob'ã$fooã«ä»£å ¥ããã -$bar = &$foo; // $fooã$barã«ããåç § +$bar = &$foo; // $fooã$barã«ããåç § $bar = "My name is $bar"; // $barã夿´... echo $foo; // $fooã夿´ãããã echo $bar; -?> +?> +]]> </programlisting> </informalexample> </para> @@ -81,17 +86,19 @@ ã¨ãããã¨ãããã¾ãã <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $foo = 25; -$bar = &$foo; // ããã¯æå¹ãªä»£å ¥ã§ãã -$bar = &(24 * 7); // ç¡å¹ã§ããååã®ãªãå¼ãåç §ãã¦ãã¾ãã +$bar = &$foo; // ããã¯æå¹ãªä»£å ¥ã§ãã +$bar = &(24 * 7); // ç¡å¹ã§ããååã®ãªãå¼ãåç §ãã¦ãã¾ãã function test() { return 25; } -$bar = &test(); // ç¡å¹ã -?> +$bar = &test(); // ç¡å¹ã +?> +]]> </programlisting> </informalexample> </para> @@ -570,8 +577,10 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; include "b.inc"; +]]> </programlisting> </informalexample> <simpara> @@ -583,13 +592,15 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; /* ã°ãã¼ãã«ã¹ã³ã¼ã */ -Function Test () { +Function Test() { echo $a; /* ãã¼ã«ã«ã¹ã³ã¼ã夿°ã®åç § */ } -Test (); +Test(); +]]> </programlisting> </informalexample> <simpara> @@ -605,17 +616,19 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; $b = 2; -Function Sum () { +Function Sum() { global $a, $b; $b = $a + $b; } -Sum (); +Sum(); echo $b; +]]> </programlisting> </informalexample> <simpara> @@ -632,15 +645,17 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = 1; $b = 2; -Function Sum () { +Function Sum() { $GLOBALS["b"] = $GLOBALS["a"] + $GLOBALS["b"]; } -Sum (); +Sum(); echo $b; +]]> </programlisting> </informalexample> <simpara> @@ -655,11 +670,13 @@ </simpara> <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { $a = 0; echo $a; $a++; } +]]> </programlisting> </informalexample> <simpara> @@ -672,11 +689,13 @@ </simpara> <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { static $a = 0; echo $a; $a++; } +]]> </programlisting> </informalexample> <simpara> @@ -694,16 +713,18 @@ <informalexample> <programlisting role="php"> -Function Test () { +<![CDATA[ +Function Test() { static $count = 0; $count++; echo $count; - if ($count < 10) { - Test (); + if ($count < 10) { + Test(); } $count--; } +]]> </programlisting> </informalexample> @@ -719,7 +740,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $a = "hello"; +]]> </programlisting> </informalexample> <simpara> @@ -729,7 +752,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ $$a = "world"; +]]> </programlisting> </informalexample> @@ -740,7 +765,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ echo "$a ${$a}"; +]]> </programlisting> </informalexample> <simpara> @@ -748,7 +775,9 @@ </simpara> <informalexample> <programlisting role="php"> +<![CDATA[ echo "$a $hello"; +]]> </programlisting> </informalexample> <simpara> @@ -791,10 +820,12 @@ <example> <title>åç´ãªãã©ã¼ã 夿°</title> <programlisting role="php"> -<form action="foo.php" method="post"> - Name: <input type="text" name="username"><br> - <input type="submit"> -</form> +<![CDATA[ +<form action="foo.php" method="post"> + Name: <input type="text" name="username"><br> + <input type="submit"> +</form> +]]> </programlisting> </example> </para> @@ -807,27 +838,42 @@ <varname>$username</varname> ã¨ãã¦å©ç¨å¯è½ã¨ãªãã¾ãã </para> - <simpara> - PHPã§ã¯ãã©ã¼ã 夿°ã®ã³ã³ããã¹ãå ã§é åã使ç¨å¯è½ã§ããä¾ãã°ã - é¢é£ãã夿°ãã°ã«ã¼ãåããããselect inputã§è¤æ°ã®å¤ãåå¾ãã - ã¨ãã£ããã¨ãå¯è½ã§ãã + <note> + <para> + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>ã®è¨å® + ã¯GETãPOSTããã¦Cookieã®å¤ã«å½±é¿ãã¾ããonã«ãªã£ã¦ãã㨠(It's + "PHP!") ã¨ããå¤ã¯èªåçã« (It\'s \"PHP!\") ã¨ãªããDBã¸ã®æ¿å ¥æã® + ã¨ã¹ã±ã¼ããä¸è¦ã«ãªãã¾ãã<function>addslashes</function>ã + <function>stripslashes</function>ããã¦<link + linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>ã + åç §ãã¦ãã ããã + </para> + </note> + + <simpara> + PHPã§ã¯ãã©ã¼ã 夿°ã®ã³ã³ããã¹ãå ã§é åã使ç¨å¯è½ã§ã(<link + linkend="faq.html">FAQã®é¢é£ç®æ</link>ãåç §ãã¦ãã ãã)ã + ä¾ãã°ãé¢é£ãã夿°ãã°ã«ã¼ãåããããselect inputã§è¤æ°ã®å¤ã + åå¾ããã¨ãã£ããã¨ãå¯è½ã§ãã </simpara> <para> <example> <title>ããè¤éãªãã©ã¼ã 夿°</title> <programlisting> -<form action="array.php" method="post"> - Name: <input type="text" name="personal[name]"><br> - Email: <input type="text" name="personal[email]"><br> - Beer: <br> - <select multiple name="beer[]"> - <option value="warthog">Warthog - <option value="guinness">Guinness - <option value="stuttgarter">Stuttgarter Schwabenbräu - </select> - <input type="submit"> -</form> +<![CDATA[ +<form action="array.php" method="post"> + Name: <input type="text" name="personal[name]"><br> + Email: <input type="text" name="personal[email]"><br> + Beer: <br> + <select multiple name="beer[]"> + <option value="warthog">Warthog + <option value="guinness">Guinness + <option value="stuttgarter">Stuttgarter Schwabenbräu + </select> + <input type="submit"> +</form> +]]> </programlisting> </example> </para> @@ -843,9 +889,12 @@ ãã©ã¼ã ãæç¨¿ããéãæ¬¡ã®ã¿ã°ã®ããã«æ¨æºã®æç¨¿ãã¿ã³ã®ä»£ããã« ç»åã使ç¨ãããã¨ãã§ãã¾ãã </simpara> + <informalexample> <programlisting role="php"> -<input type=image src="image.gif" name="sub"> +<![CDATA[ +<input type="image" src="image.gif" name="sub"> +]]> </programlisting> </informalexample> <simpara> @@ -879,7 +928,9 @@ </simpara> <informalexample> <programlisting role="php"> -SetCookie ("MyCookie[]", "Testing", time()+3600); +<![CDATA[ +setcookie("MyCookie[]", "Testing", time()+3600); +]]> </programlisting> </informalexample> <simpara> @@ -893,9 +944,11 @@ <example> <title><function>SetCookie</function>ã®ä¾</title> <programlisting role="php"> +<![CDATA[ $Count++; -SetCookie ("Count", $Count, time()+3600); -SetCookie ("Cart[$Count]", $item, time()+3600); +setcookie("Count", $Count, time()+3600); +setcookie("Cart[$Count]", $item, time()+3600); +]]> </programlisting> </example> </sect2> @@ -906,8 +959,10 @@ <para> PHP ã¯ãç°å¢å¤æ°ãèªåçã«é常㮠PHP 夿°ã¨ãã¦ä½¿ç¨å¯è½ã¨ãã¾ãã <informalexample> - <programlisting> + <programlisting role="php"> +<![CDATA[ echo $HOME; /* ç°å¢å¤æ° HOME ãè¨å®ããã¦ããå ´åã表示ãã¾ãã */ +]]> </programlisting> </informalexample> </para> @@ -929,7 +984,9 @@ ããã(ããªãªããçµæ¢ç¬¦)ã¯PHPã®å¤æ°åã§æå¹ãªæåã§ã¯ãªãã¨ããã ã¨ã«æ³¨æããå¿ è¦ãããã¾ããæ¬¡ã®ä¾ãè¦ã¦ã¿ã¾ãããã <programlisting role="php"> +<![CDATA[ $varname.ext; /* ç¡å¹ãªå¤æ°å */ +]]> </programlisting> ããã§ããã¼ãµã¯ã $varname ã¨ããååã®å¤æ°ã®å¾ã«æååçµåæ¼ç® åãããããã®å¾ã«ãè£¸ã®æåå(ããªãã¡ãæ¢ç¥ã®ãã¼ã¾ãã¯äºç´èªã«