mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Add PHP tags to <programlisting>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301115 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6f78fd0289
commit
257719873b
13 changed files with 16 additions and 51 deletions
|
@ -1078,6 +1078,7 @@ A\B::foo(); // calls method "foo" of class "B" from namespace "A\A"
|
|||
<![CDATA[
|
||||
<?php
|
||||
$a = new \stdClass;
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -1092,6 +1093,7 @@ $a = new \stdClass;
|
|||
<![CDATA[
|
||||
<?php
|
||||
$a = new stdClass;
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -139,6 +139,7 @@ $c->curveTo(20, 80, 80, 20, 90, 50);
|
|||
$c->stroke();
|
||||
|
||||
$s->writeToPng(dirname(__FILE__) . '/curveTo.png');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -164,6 +165,7 @@ cairo_curve_to($c, 20, 80, 80, 20, 90, 50);
|
|||
cairo_stroke($c);
|
||||
|
||||
cairo_surface_write_to_png($s, dirname(__FILE__) . '/curve_to.png');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -98,6 +98,7 @@ $c->setSourceRgb(1, 1, 1);
|
|||
$c->stroke();
|
||||
|
||||
$s->writeToPng(dirname(__FILE__) . '/CairoContext_moveTo.png');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
|
@ -136,6 +137,7 @@ cairo_set_source_rgb($c, 1, 1, 1);
|
|||
cairo_stroke($c);
|
||||
|
||||
cairo_surface_write_to_png($s, dirname(__FILE__) . '/cairo_move_to.png');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
<?php
|
||||
// [...]
|
||||
CairoContext::newPath();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -71,6 +72,7 @@ CairoContext::newPath();
|
|||
<?php
|
||||
// [...]
|
||||
cairo_new_path($context);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -37,57 +37,6 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<!-- Use when ERRORS exist
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
When does this function throw E_* level errors, or exceptions?
|
||||
</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
|
||||
<!-- Use when a CHANGELOG exists
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>Enter the PHP version of change here</entry>
|
||||
<entry>Description of change</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
-->
|
||||
<!--
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>A <function>http_persistent_handles_clean</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
-->
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
<?php
|
||||
echo msgfmt_format_message("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree", array(4560, 123, 4560/123));
|
||||
echo msgfmt_format_message("de", "{0,number,integer} Affen auf {1,number,integer} Bäumen sind {2,number} Affen pro Baum", array(4560, 123, 4560/123));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -51,6 +51,7 @@ $db = $connection->mybiglongdbname;
|
|||
$db = $connection->mybiglongdbnme;
|
||||
// now connected to a different database!
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
|
|
@ -113,6 +113,7 @@ while (!feof($fp)) {
|
|||
|
||||
echo $s;
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
|
||||
$isDirectory = (bool) ((($e->getHostOs() == RAR_HOST_WIN32) && ($e->getAttr() & 0x10)) ||
|
||||
(($e->getHostOs() == RAR_HOST_UNIX) && (($e->getAttr() & 0xf000) == 0x4000)));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
|
|
@ -48,6 +48,7 @@ $s2 = $o->serialize();
|
|||
|
||||
var_dump($s1);
|
||||
var_dump($s2);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<?php
|
||||
$iterator = new DirectoryIterator(dirname(__FILE__));
|
||||
echo $iterator->getPath();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<?php
|
||||
$info = new SplFileInfo(__FILE__);
|
||||
print_r(posix_getgrgid($info->getGroup()));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
|
|
|
@ -51,6 +51,7 @@ $query->addCond('a_col', TokyoTyrant::RDBQC_STRBW, 'a');
|
|||
|
||||
$query->search();
|
||||
var_dump($query->hint());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
|
|
Loading…
Reference in a new issue