mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Clarify meaning of $fl parameter and improve example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344411 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8bdb32ed3d
commit
a2a7e00403
1 changed files with 16 additions and 4 deletions
|
@ -44,9 +44,9 @@
|
|||
<term><parameter>fl</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The available formats are:
|
||||
A bitmask which may consist of
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM_GERESH</constant>,
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant>,
|
||||
<constant>CAL_JEWISH_ADD_ALAFIM</constant> and
|
||||
<constant>CAL_JEWISH_ADD_GERESHAYIM</constant>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -70,11 +70,23 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo jdtojewish(gregoriantojd(10, 8, 2002), true,
|
||||
CAL_JEWISH_ADD_GERESHAYIM + CAL_JEWISH_ADD_ALAFIM + CAL_JEWISH_ADD_ALAFIM_GERESH);
|
||||
$jd = gregoriantojd(10, 8, 2002);
|
||||
echo jdtojewish($jd, true), PHP_EOL,
|
||||
jdtojewish($jd, true, CAL_JEWISH_ADD_GERESHAYIM), PHP_EOL,
|
||||
jdtojewish($jd, true, CAL_JEWISH_ADD_ALAFIM), PHP_EOL,
|
||||
jdtojewish($jd, true,CAL_JEWISH_ADD_ALAFIM_GERESH), PHP_EOL;
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
ב חשון התשסג
|
||||
ב' חשון התשס"ג
|
||||
ב חשון ה אלפים תשסג
|
||||
ב חשון ה'תשסג
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue